mongodb 空间查询

空间查询 
gis.realtime_gps.find({ "gpsDetail" : { "$within" : { "$polygon" : { a : { x : -180, y : -90 }, b : { x : -180, y : 90 }, c : { x : 180, y : 90 }, d : { x : 180, y : -90} } } } })


可使用多编写查找区域内的坐标点。

猜你喜欢

转载自qiu122.iteye.com/blog/2319503