-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.6
-
Component/s: Geo
-
Labels:None
-
ALL
-
Using MongoDB 3.2 i'm trying to use 2dsphere queries on a collection of Points.
Lets say i have à collection cust_5_abcd with a 2dsphere index on the_geom field.
Now i'm trying to query this Point using $geoWithin to get all data inside a specific Polygon. This is where i'm getting different result if i use $geometry with the GeoJSON definition , or with $polygon and the strict coordinates. Maybe something in the documentation is missing or something i misunderstood.
With $geometry gives NO result.
With $polygon returns my Point.