[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: File geo_s2_overlapping_multis.js    
Issue Links:
Duplicate
is duplicated by SERVER-11618 $geoWithin with a Polygon "ring" fails Closed
Related
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.
Insert a point p2 at 0.5, 0.5.

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, SERVER-10867.

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/708f37e22b00e5705e333b7cf2179afea0e788a4

Generated at Thu Feb 08 03:24:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.