[SERVER-8180] Polygon running the length of the equator returns incorrect results using $within query and 2dsphere index Created: 15/Jan/13 Updated: 15/Feb/13 Resolved: 16/Jan/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ian Bentley | Assignee: | hari.khalsa@10gen.com |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Steps To Reproduce: | var t = db.geo_s2oddshapes ); var testPoint = { }; var testHorizLine = { }; var testVertLine = { }; t.insert(testPoint); var longPoly = {type: "Polygon", coordinates: [ [[89.0, 1.0], [-89.0, 1.0], [-89.0, -1.0], [89.0, -1.0], [89.0, 1.0]] ]}; //We expect that the testPoint (at the origin) will be within this poly. //We expect that the testPoint, and the testVertLine should geoIntersect |
| Participants: |
| Description |
|
$geoIntersects is also returning more results than expected. |
| Comments |
| Comment by hari.khalsa@10gen.com [ 16/Jan/13 ] |
|
Plotting the stuff on the sphere contradicts the test. Updating the test. Hooray confusing spherical geometry. |