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

Change geo_full.js to not create points near the poles

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.13, 3.2.8, 3.3.9
    • Component/s: Geo
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      Query 16 (06/24/16)
    • Linked BF Score:
      0

      Description

      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;
      }
      

        Attachments

        1. geo_2d_2dsphere_parity.js
          7 kB
          Max Hirschhorn

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: