mongodb 中的地理空间数据

Geo-spatial data in mongodb

如何在Mongodb中存储地理空间数据? 与普通数据相比,MongoDB 如何支持或存储地理空间数据? 如何 command/suggest Mongodb 将输入的数据(JSON 对象)视为地理空间数据? MongoDB 为地理空间数据提供的各种 features/support 是什么?

请帮助我 documentation/Reference link 因为我是 MongoDb 和地理空间数据概念的新手。

非常感谢。

我将从 MongoDB 文档开始: https://docs.mongodb.com/manual/geospatial-queries/

然后继续我的网络研讨会: https://www.slideshare.net/mongodb/getting-started-with-geospatial-data-in-mongodb

MongoDB 像对待其他数据一样对待地理数据,因为文档模型允许任意复杂的形状。通常,地理字段是具有 type 字段和 coordinates 字段的子结构,例如

{
  name: "Buzz",
  location: { type: "Polygon", coordinates: [ array of rings, each ring is an array of points, and a point is small array of [lon,lat] ]}

}

披露:我曾经在 MongoDB 工作。