[SERVER-10867] 2dsphere Polygon parsing error Created: 24/Sep/13 Updated: 11/Jul/16 Resolved: 01/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 2.4.6, 2.5.2 |
| Fix Version/s: | 2.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ian Bentley | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Attached is a test case that illustrates the bug. Insert a point p1 at 10, 10. Create a polygon that has a exterior area of the square from 9,9 to 11,11 and add a hole from 0,0 to 1,1 Expect a parse error, instead, both points are returned. From docs: "An array of LinearRing coordinate arrays, as described in the GeoJSON Polygon specification: http://geojson.org/geojson-spec.html#polygon. For Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes." |
| Comments |
| Comment by auto [ 01/Nov/13 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: Polygons' interior loops must be contained in the exterior shell, Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |