简体   繁体   English

将 LatLong 转换为 UTM、向 UTM 添加偏移量以及将偏移量 UTM 转换回 LatLong 时如何处理可能的区域更改?

[英]How to deal with possible zone changes when converting LatLong to UTM, adding offset to UTM, and converting offset UTM back to LatLong?

I'm trying to accomplish a fairly simple goal, which is that I have a starting LatLong coordinate, I convert this into UTM, thus ending up with some particular zone number and letter (I'm using the Python library UTM ), I offset the UTM eastings and northings by some values, and then convert everything back into LatLong.我正在尝试实现一个相当简单的目标,即我有一个起始 LatLong 坐标,我将其转换为 UTM,从而得到一些特定的区域编号和字母(我使用的是Python 库 UTM ),我偏移了将 UTM 东距和北距按某些值计算,然后将所有内容转换回 LatLong。 This generally seems to work fine, except for edge conditions if my offset causes the current UTM coordinates to go out of bounds of the current zone and into a new zone.这通常似乎工作正常,但边缘条件除外,如果我的偏移导致当前 UTM 坐标超出当前区域的范围并进入新区域。

I'm very new to working with these geographical coordinate systems, so does it even make sense for me to say can I do offsets while preserving the current zone, or does it loop back around?我对使用这些地理坐标系非常陌生,所以我说我可以在保留当前区域的同时进行偏移还是循环返回是否有意义? Is it possible to have UTM coordinates that are technically out of bounds within the current zone, but convert properly back to the proper Lat/Long coordinates, or will they be wrong?是否有可能在当前区域内拥有技术上超出边界的 UTM 坐标,但正确转换回正确的纬度/经度坐标,或者它们会出错?

Thanks!谢谢!

You can have coordinates outside zone, see eg the subsection Overlapping grids in UTM .您可以在区域外拥有坐标,例如参见UTM 中的重叠网格小节。

In fact, such coordinate system (or better the MGRS) was designed also for such cases: on a military ground (battles) you should not care much about changing zones or to do transformations (and so spheric or ellipsoid coordinates).事实上,这样的坐标系(或者更好的 MGRS)也是为这样的情况设计的:在军事场地(战斗)上,你不应该太在意改变区域或进行变换(以及球面或椭球坐标)。

Just test that your libraries allows such values: some libraries are more strict (they may requires normalized coordinates).只需测试您的库是否允许此类值:有些库更严格(它们可能需要标准化坐标)。 By UTM design they should allows coordinates outside proper zone, but a test is always better.通过 UTM 设计,他们应该允许在适当区域之外的坐标,但测试总是更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM