Geospatial Query Operators地理空间查询运算符
On this page本页内容
Geospatial operators return data based on geospatial expression conditions.地理空间运算符根据地理空间表达式条件返回数据。
Note
For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.有关特定运算符的详细信息,包括语法和示例,请单击该运算符参考页的链接。
Operators运算符
Query Selectors查询选择器
$geoIntersects | $geoIntersects .2dsphere 索引支持$geoIntersects 。 |
$geoWithin | $geoWithin .2dsphere 索引和2d 索引支持$geoWithin 。 |
$near | 2dsphere and 2d indexes support $near .2dsphere 索引和2d 索引支持$near 。 |
$nearSphere | 2dsphere and 2d indexes support $nearSphere .2dsphere 索引和2d 索引支持$nearSphere 。 |
Geometry Specifiers几何体规范
$box | $geoWithin queries. $geoWithin 查询指定一个使用旧坐标对的矩形框。$box .2d 索引支持$box 。 |
$center | $geoWithin queries when using planar geometry. $geoWithin 查询。2d index supports $center .2d 索引支持$center 。 |
$centerSphere | $geoWithin queries when using spherical geometry. $geoWithin 查询指定使用传统坐标对或GeoJSON格式的圆。$centerSphere .2dsphere 索引和2d 索引支持$centerSphere 。 |
$geometry | |
$maxDistance | $near and $nearSphere queries. $near 和$nearSphere 查询的结果。2dsphere and 2d indexes support $maxDistance .2dsphere 和2d 索引支持$maxDistance 。 |
$minDistance | $near and $nearSphere queries. For use with 2dsphere index only.$near 和$nearSphere 查询结果的最小距离。仅用于2dsphere 索引。 |
$polygon | $geoWithin queries. $geoWithin 查询使用旧坐标对的多边形。2d index supports $center .2d 索引支持$center 。 |
← $where $geoIntersects →