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

$geoIntersects returns false intersection on close non-intersecting polygons

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.1
    • Component/s: Geo
    • Labels:
    • ALL

      $geoIntersects will show these two polygons as intersecting:

      { "type" : "Polygon", "coordinates" : [[[ 1.0,  3.0], [ 12.0,  3.0], [ 12.0,  8.0],  [ 1.0,  8.0], [ 1.0,  3.0]]] },
      
      { "type" : "Polygon", "coordinates" : [ [ [ 6, 9 ], [ 7, 9 ], [ 7, 8.02 ], [ 6, 8.02 ], [ 6, 9 ] ] ] }
      

      The top of the first polygon is .02 degrees away from the bottom of the second one. The range of false intersections increases with lattitude. I wasn't able to reproduce this with longitudinally near polygons.

        1. 13920-flat-earth.png
          13920-flat-earth.png
          66 kB
        2. 13920-round-earth.png
          13920-round-earth.png
          65 kB
        3. geoInt.js
          2 kB

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            michael.grundy Michael Grundy
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: