MKMapview坐标UTM32

发布于 2024-11-14 16:28:10 字数 116 浏览 6 评论 0原文

我从 JSON feed 获取坐标,并以 UTM32 格式获取它们。有谁知道如何将它们转换为纬度和经度,以便我可以在地图视图中显示它们?

例如:“纬度”:597355, “长”:6643184,

I´m getting coordinates from a JSON feed, I get them in UTM32. Does anyone know how I can convert these into latitudes and longitudes so I can display them in my mapview ?

Ex: "Lat": 597355,
"Lng": 6643184,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

太阳男子 2024-11-21 16:28:10

这是一个 Java 小型库:
UTM32_converter

这是转换此处找到的 JavaScript 的结果:Geo UTM

Here is a small library in Java:
UTM32_converter

It's the result from converting a JavaScript found here: Geo UTM

权谋诡计 2024-11-21 16:28:10

我建议使用诸如 PROJGeographicLib 进行从 UTM 到纬度/经度的转换。您也可以考虑 GDAL,但 UTM 转换 API 基本上是 PROJ 的包装器,并且它是一个相当大的库对于简单的转换来说这可能有点过分了。

I'd suggest using a library such as PROJ or GeographicLib to do the conversion from UTM to latitude/longitude. You might also consider GDAL, but the UTM conversion API is basically a wrapper for PROJ, and it's a pretty large library that's probably overkill for simple conversions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文