mongodb空间查询之查询单位

1.建立空间索引 db.collection.ensureIndex({geom.coordinates:2d})

1.建立空间索引

db.collection.ensureIndex({‘geom.coordinates’:’2d’}) ,香港服务器,香港服务器,香港虚拟主机