2dsphere Polygon parsing error

XMLWordPrintableJSON

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

      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:
              A. Jesse Jiryu Davis
              Reporter:
              Ian Bentley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: