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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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

      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. MultiPolygonSample.json
          2 kB
        2. SamplePloygons.txt
          5 kB

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            brittenbrianm@johndeere.com Brian Britten
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: