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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Done
    • Affects Version/s: 3.4.13
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

            Assignee:
            kelsey.schubert Kelsey T Schubert
            Reporter:
            zoharby Zohar Bar-Yehuda
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: