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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.4
    • Component/s: Geo
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Asya Kamsky
              Reporter:
              Rachita Bansal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: