Exterior shell of polygon is invalid: duplicate points not ignored in Polygon/MultiPolygon

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.3
    • Affects Version/s: 2.4.1
    • Component/s: Geo
    • None
    • Environment:
      Single MongoDB instance running on Window laptop.
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to add a GeoJSON polygon to a field with a 2dsphere index I get the error: "Exterior shell of polygon is invalid".

      That same GeoJSON polygon appears to be vaild when tested at http://geojsonlint.com/.

      How can I identify why the shell is invalid?
      The Attached file contains both the invalid polygon and a valid one that stored successfully.

        1. SamplePloygons.txt
          5 kB
          Brian Britten
        2. MultiPolygonSample.json
          2 kB
          Olaf Krische

            Assignee:
            Daniel Pasette (Inactive)
            Reporter:
            Brian Britten
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: