开发者社区 问答 正文

mongodb建立2dsphere索引报错?报错

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



展开
收起
爱吃鱼的程序员 2020-06-14 15:56:19 902 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    loc
     
      :
      {
      type
      
       :
       
        "Point"
        ,
        coordinates
        
         :
         [
         
          #666666;">-
          
           208050;">73.97
           ,
           
            40.77
            ]
            },
           
          
         
        
       
      
     

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

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

    Error:  Can'textractgeokeys: 

    2020-06-14 15:56:36
    赞同 展开评论