-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.0-rc0
-
Component/s: Geo
-
None
-
ALL
-
db.testGeoWithin.insert( { "geometry" : { "location" : { "lng" : -73.771799, "lat" : 41.033431 } }, "types" : [ "school", "establishment" ] } ); db.testGeoWithin.ensureIndex( {"geometry.location" : "2d" } ); db.testGeoWithin.find( {"types":{"$in":["school"]},"geometry":{"$geoWithin":{"$geometry":{"type":"Polygon","coordinates":[[[-73.765358810837,41.036711084713],[-73.773316461021,41.036711084713],[-73.773316461021,41.031802162346],[-73.765358810837,41.031802162346],[-73.765358810837,41.036711084713]]]}}}} );
Should return the inserted doc.
Btw, it works just fine in 2.4.6.
- links to