蒙戈以GeoJSON导入结果与圆坐标

问题描述:

我旁边以GeoJSON:蒙戈以GeoJSON导入结果与圆坐标

{ 
    "type": "Feature", 
    "geometry": { 
     "type": "Point", 
     "coordinates": [-80.87088507656375, 35.21515162500578] 
    }, 
    "properties": { 
     "name": "ABBOTT NEIGHBORHOOD PARK", 
     "address": "1300 SPRUCE ST" 
    } 
} 

当我运行蒙戈进口没有任何错误,但我所有的坐标是圆的,它看起来像:

{ 
    "_id":"5763b765e79b559e5815ba46", 
    "type":"Feature", 
    "geometry":{ 
    "type":"Point", 
    "coordinates":[ 
     -81, 
     35.22 
    ] 
    }, 
    "properties":{ 
    "name":"ABBOTT NEIGHBORHOOD PARK", 
    "address":"1300 SPRUCE ST" 
    } 
} 

你有什么想法,为什么这是惹人注目的,可以做些什么来解决它?谢谢。

jsonfile image

这里是您的JSON文件后,我导入josn

Chetan-desktop:~/Desktop$ mongoimport --db stackoverflow --collection exp2 --file stackoverflow.json 
2016-06-18T10:32:40.587+0530 connected to: localhost 
2016-06-18T10:32:40.831+0530 imported 1 document 

输入输出后就是这样

> use stackoverflow 
switched to db stackoverflow 
> show collections 
exp2 
stack1 
system.indexes 
> db.exp2.find().pretty() 
{ 
    "_id" : ObjectId("5764d5f018787c4414e189e2"), 
    "type" : "Feature", 
    "geometry" : { 
     "type" : "Point", 
     "coordinates" : [ 
      -80.87088507656375, 
      35.21515162500578 
     ] 
    }, 
    "properties" : { 
     "name" : "ABBOTT NEIGHBORHOOD PARK", 
     "address" : "1300 SPRUCE ST" 
    } 
} 

我没有发现任何坐标四舍五入

可检查蒙戈的版本,因为我的MongoDB外壳版本:3.2.6