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

Incorrect wrapping of spherical query near the poles on 2d index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Geo
    • Query Integration
    • Fully Compatible
    • ALL
    • 0

    Description

      In this build failure, the S2 cap near the pole gives a bound covering it, but 2d index interprets it literally to the following box, whose longitudes should be (179.005 -->> -110.896) instead, on the other side of the earth.

      bounds: (-110.896,-89.776) -->> (179.005,-89.1716)
      

      The other failure of nearSphere seems the same problem as it is also very close to the pole. For nearSphere we expands the search area though. We should deprecate the support of spherical queries on 2d index and prohibit them in the future.

      As a workaround, spherical queries using 2dsphere index work as expected.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: