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

Change geo_full.js to not create points near the poles

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.13, 3.2.8, 3.3.9
    • Affects Version/s: None
    • Component/s: Geo
    • Fully Compatible
    • Query 16 (06/24/16)
    • 0

      Until SERVER-24440 is fixed, points near the poles may fail to be returned by a $nearSphere when a "2d" index is used. We should change the pointIsOK() function in the geo_full.js test to only create points that have latitudes in [-89, 89].

      if ((startPoint[1] + distDegrees > 90) || (startPoint[1] - distDegrees < -90)) {
          return false;
      }
      

        1. geo_2d_2dsphere_parity.js
          7 kB
          Max Hirschhorn

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: