Can't extract geo keys on a polygon with a nearly-touching hole

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.4.13
    • Component/s: Geo
    • None
    • ALL
    • Hide

      Attached python script debug_mongo_geo_error.py

      Show
      Attached python script debug_mongo_geo_error.py
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      I'm trying to load polygon entities from OpenStreetMap into MongoDB, and encountered an error with the following object:

      https://www.openstreetmap.org/relation/7397686

       

      While the hole in the large polygon is indeed fully contained in the polygon and does not intersect with it, inserting it with a 2DSphere index still fails. 

      If I shift the hole polygon a few meters northwards (putting it a bit further away from the outer polygon), it inserts correctly

            Assignee:
            Kelsey Schubert
            Reporter:
            Zohar Bar-Yehuda
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: