Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10867

2dsphere Polygon parsing error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: 2.4.6, 2.5.2
    • Component/s: Geo
    • Fully Compatible
    • ALL

      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."

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            ian.bentley Ian Bentley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: