mongodb建立2dsphere索引报错

红番茄 发布于 2015/05/18 16:51
阅读 1K+
收藏 0

Exception in thread "main" com.mongodb.MongoException: exception: Can't extract geo keys: { _id: ObjectId('5559a5ac6516cd2268fa696c'), name: "xxx", point: [ 30.633134, 103.976095 ] }  can't project geometry into spherical CRS: [ 30.633134, 103.976095 ] 

一直建不起2dsphere



加载中
0
filecache
filecache
loc : { type: "Point", coordinates: [ -73.97, 40.77 ] },

http://docs.mongodb.org/manual/tutorial/build-a-2dsphere-index/

参考如上, 你建立索引的字段, 数据格式定义正确么?

Error:  Can't extract geo keys: 

返回顶部
顶部