如何转换osmium.osm. -Location cordine cordine cordine cordine cortination

发布于 2025-02-09 06:53:23 字数 415 浏览 3 评论 0原文

我已经使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文