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

$geoWithin doesn't return correct geo-points when using $box query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.6.4
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Operating System:
      ALL

      Description

      I'm trying to find geolocations inside a geographical area using a bounding box but it seems that $geoWithin query doesn't return correct points at certain range of the bounding box. Adding an example query below.

      db.wisp.find({"features.geometry":{ $geoWithin: {$box: [[156.82969752500003, -8.287855253974222],[-10.05235377500002, 61.99562499932121]]}}});

      An observation - If I make the south-west longitude value to -156, then correct values are returned.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              asya Asya Kamsky
              Reporter:
              rachita.bansal Rachita Bansal
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: