[SERVER-35837] geo query the area range coordinates, the result set has coordinates that are not within the area Created: 27/Jun/18 Updated: 27/Oct/23 Resolved: 17/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 3.4.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | wangdejian | Assignee: | Nick Brewer |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos7 |
||
| Participants: |
| Description |
|
mongodb version: rhel70-3.4.10。I have a polygon.
Here's the query:
There exists coordinates that are beyond the highest latitude, 58.60891434369525. For example: mongodb版本rhel70-3.4.10。我现在有一个多边形,"loc:2dsphere". {{db.places.find( { loc : } } } )}} {{}} 查询结果中发现有不少坐标点纬度超过了该区域的最大纬度,58.60891434369525。例如:[156.1194,58.638217],[156.1194,58.61],[156.51067,58.610183],[155.858483,58.618367],[155.858483,58.618367],[155.859767,58.618867],[153.55,58,616667]等坐标点不在该区域范围内。{{}} {{}} {{}} {{}} {{}} {{}} {{}} {{}} {{}} {{}} |
| Comments |
| Comment by Nick Brewer [ 17/Jul/18 ] |
|
Hi doe wang The behavior you're seeing is expected - the lines that make up a polygon are traveling over a sphere, and as a result the polygon can encompass points that are above or below those that make up the shape. This example from our documentation is a good illustration of what this looks like in practice. Regards, |
| Comment by wangdejian [ 11/Jul/18 ] |
|
Can you tell me my question is bug or not? |