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

Change geo_full.js to not create points near the poles

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.0.13, 3.2.8, 3.3.9
    • Geo
    • Fully Compatible
    • Query 16 (06/24/16)
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: