> t = db.geo_polygon5;
test.geo_polygon5
> t.drop();
true
>
> t.insert(
)
> t.insert(
)
> t.insert(
)
> t.insert(
)
> t.insert(
)
>
> t.ensureIndex(
);
>
> t.find( { loc: { "$within":
}} )
{ "_id" : ObjectId("4e5d35916c2fa14a9f1ae299"), "loc" : [ 1, 0 ] } { "_id" : ObjectId("4e5d35916c2fa14a9f1ae298"), "loc" : [ 0, 0 ] } { "_id" : ObjectId("4e5d35916c2fa14a9f1ae29b"), "loc" : [ 3, 0 ] } { "_id" : ObjectId("4e5d35916c2fa14a9f1ae29a"), "loc" : [ 2, 0 ] }The point [4,0] is left out of the results.
- is depended on by
-
SERVER-3726 Geo polygon search bugs
- Closed
- is related to
-
SERVER-772 geo polygon searches
- Closed