Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.6.0-rc0
-
None
-
ALL
-
Description
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.
Attachments
Issue Links
- links to