如何转换osmium.osm. -Location cordine cordine cordine cordine cortination
我已经使用Pyosmium从节点中提取了坐标数据。尽管我成功地提取了数据,但是Osmium给出的坐标并非正常格式,但我还是尝试使用Pyproj转换其中一种坐标,但输出是错误的。转换Pyosmium(Osmium.osm. -Location)坐标为正常坐标的最佳方法是什么?
The code tried:
from pyproj import Proj, transform
inProj = Proj(init='epsg:3857')
outProj = Proj(init='epsg:4326')
x2,y2 = transform(inProj,outProj,-2916285,515160418)
print(x2,y2)
Output I got:-
(-26.197433883484983, 90.0)
I have extracted the coordinates data from nodes using pyosmium. Though I was successful in extracting the data but the coordinates which osmium is giving is not in normal format, I tried to convert the one of the coordinates using pyproj but the output is wrong. What is the best way to convert the pyosmium(osmium.osm.location) coordinates to normal coordinates?
The code tried:
from pyproj import Proj, transform
inProj = Proj(init='epsg:3857')
outProj = Proj(init='epsg:4326')
x2,y2 = transform(inProj,outProj,-2916285,515160418)
print(x2,y2)
Output I got:-
(-26.197433883484983, 90.0)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论