When querying documents using $within, in some situations some results are omitted:
Here is a test case:
> db.pos.remove()
> db.pos.save(
)
> db.pos.save(
)
> db.pos.ensureIndex(
,
{ min : -21000000 , max : 21000000 } )
> db.pos.save(
)
> db.pos.save(
)
> db.pos.find({"loc" : {"$within" :
}}).count()
4
> db.pos.find({"loc" : {"$within" :
}}).count()
1
> db.pos.find({"loc" : {"$within" :
}}).toArray();
[
]