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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • 3.4.13
    • None
    • Geo
    • None
    • ALL
    • Hide

      Attached python script debug_mongo_geo_error.py

      Show
      Attached python script debug_mongo_geo_error.py

    Description

      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

      Attachments

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey Schubert
            zoharby Zohar Bar-Yehuda
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: