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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.6.4
    • Geo
    • None
    • 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

        Activity

          People

            asya.kamsky@mongodb.com Asya Kamsky
            rachita.bansal Rachita Bansal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: