问题描述
我有一个GeoJSON文件,我正在尝试处理,以便在Google地图上绘制一些功能。然而,问题在于坐标不在传统的纬度/经度表示中,而是一些大的六/七位数字。示例:
{
type:FeatureCollection,$ b $features:[
$ bbbbbbbbbbbbbbbb :1950.0
},
geometry:{
type:Polygon,
coordinates:[
[
[
772796.724674999713898,
2960766.746374994516373
],
[
772770.131549999117851,
2960764.944537505507469
],
[
772794.544237494468689,
2960796.93857
],
[
772810.48285000026226,
2960784.77685
],
[
772796.724674999713898,
2960766.746374994516373
]
]
]
}
},
.....
]
}
我一直在阅读关于不同坐标系的内容,但对于这个我还没有达到任何地方。想法?如果你的坐标源在美国,那么很可能坐标系是国家平面或UTM的一些变化。否则,这是其他一些对原产国来说效果最好的坐标系。实际上有数以千计的坐标系统,并且很难根据坐标来猜测您的坐标系。
您需要从数据提供者坐标系是什么,然后使用您选择的编程语言的API重新编制点。 是一种非常流行的一种,在许多语言中都有绑定,并且它有一个JavaScript端口,称为。
I have a GeoJSON file that I am trying to process in order to draw some features on top of google maps. The problem, however, is that the coordinates are not in the conventional latitude/longitude representation, but rather some large six/seven figure numbers. Example:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 0,
"properties": {
"OBJECTID": 1,
"YR_BUILT": 1950.0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
772796.724674999713898,
2960766.746374994516373
],
[
772770.131549999117851,
2960764.944537505507469
],
[
772794.544237494468689,
2960796.93857
],
[
772810.48285000026226,
2960784.77685
],
[
772796.724674999713898,
2960766.746374994516373
]
]
]
}
},
.....
]
}
I have been reading about the different coordinates systems, but being new to this I have not reached any where. Ideas?
If your coordinate source is in the United States, most likely the coordinate system is some variation of State Plane or UTM. Otherwise, it's some other coordinate system that works best for the country of origin. There are literally thousands of coordinate systems, and it can be difficult to guess which you have based on just the coordinates.
You'll need to find out from the data provider what the coordinate system is, and then use an API in your programming language of choice to reproject the points. proj4 is a popular one, with bindings in many languages, and it has a port to Javascript called proj4js.
这篇关于GeoJSON坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!