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

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

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

      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@mongodb.com Kelsey Schubert
            Reporter:
            zoharby Zohar Bar-Yehuda
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: