Home >Database >Mysql Tutorial > mongodb空间查询之查询单位

mongodb空间查询之查询单位

WBOY
WBOYOriginal
2016-06-07 17:56:281213browse

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

1.建立空间索引

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn