<legend id='jfbdX'><style id='jfbdX'><dir id='jfbdX'><q id='jfbdX'></q></dir></style></legend>

  1. <small id='jfbdX'></small><noframes id='jfbdX'>

    <tfoot id='jfbdX'></tfoot>
    <i id='jfbdX'><tr id='jfbdX'><dt id='jfbdX'><q id='jfbdX'><span id='jfbdX'><b id='jfbdX'><form id='jfbdX'><ins id='jfbdX'></ins><ul id='jfbdX'></ul><sub id='jfbdX'></sub></form><legend id='jfbdX'></legend><bdo id='jfbdX'><pre id='jfbdX'><center id='jfbdX'></center></pre></bdo></b><th id='jfbdX'></th></span></q></dt></tr></i><div id='jfbdX'><tfoot id='jfbdX'></tfoot><dl id='jfbdX'><fieldset id='jfbdX'></fieldset></dl></div>

        <bdo id='jfbdX'></bdo><ul id='jfbdX'></ul>

      如何在度、分、秒之间转换为十进制坐标

      时间:2023-05-27

      <legend id='SAjBm'><style id='SAjBm'><dir id='SAjBm'><q id='SAjBm'></q></dir></style></legend>

        • <bdo id='SAjBm'></bdo><ul id='SAjBm'></ul>
            <tbody id='SAjBm'></tbody>
          1. <i id='SAjBm'><tr id='SAjBm'><dt id='SAjBm'><q id='SAjBm'><span id='SAjBm'><b id='SAjBm'><form id='SAjBm'><ins id='SAjBm'></ins><ul id='SAjBm'></ul><sub id='SAjBm'></sub></form><legend id='SAjBm'></legend><bdo id='SAjBm'><pre id='SAjBm'><center id='SAjBm'></center></pre></bdo></b><th id='SAjBm'></th></span></q></dt></tr></i><div id='SAjBm'><tfoot id='SAjBm'></tfoot><dl id='SAjBm'><fieldset id='SAjBm'></fieldset></dl></div>
            <tfoot id='SAjBm'></tfoot>
          2. <small id='SAjBm'></small><noframes id='SAjBm'>

                本文介绍了如何在度、分、秒之间转换为十进制坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                寻找 java 实用程序.如果你能告诉我如何使用geotools库来做就更好了.

                Looking for a java utility. It is even better if you can tell me how to do it using geotools library.

                推荐答案

                你所说的十进制坐标"是指经纬度(也称为十进制度)吗?如果是这样,那么您要做的事情就很简单了:

                By "Decimal coordinates" do you mean latitude and longitude (also known as the decimal degree)? If so, what you're trying to do is pretty easy:

                给定一个 DMS(度、分、秒)坐标,例如 W87°43′41″,使用以下方法:计算总秒数,43′41″ = (43*60 + 41) = 2621 秒.小数部分是总秒数乘以 3600.2621/3600 = ~0.728056 将分数度数加到整数上产生最终结果的度数:87 + 0.728056 = 87.728056

                Given a DMS (Degrees, Minutes, Seconds) coordinate such as W87°43′41″, it's trivial to convert it to a number of decimal degrees using the following method: Calculate the total number of seconds, 43′41″ = (43*60 + 41) = 2621 seconds. The fractional part is total number of seconds divided by 3600. 2621 / 3600 = ~0.728056 Add fractional degrees to whole degrees to produce the final result: 87 + 0.728056 = 87.728056

                因为是西经坐标,所以否定结果.最终结果是-87.728056.

                Since it is a West longitude coordinate, negate the result. The final result is -87.728056.

                来自 维基百科.这是一个 Javascript 小部件,它做同样的事情.

                From Wikipedia. Here's a Javascript widget that does the same thing.

                这篇关于如何在度、分、秒之间转换为十进制坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Java,将纬度/经度转换为 UTM 下一篇:从一个坐标到另一个坐标的方位角

                相关文章

              • <small id='WQx5o'></small><noframes id='WQx5o'>

                  <bdo id='WQx5o'></bdo><ul id='WQx5o'></ul>
              • <legend id='WQx5o'><style id='WQx5o'><dir id='WQx5o'><q id='WQx5o'></q></dir></style></legend>

                <i id='WQx5o'><tr id='WQx5o'><dt id='WQx5o'><q id='WQx5o'><span id='WQx5o'><b id='WQx5o'><form id='WQx5o'><ins id='WQx5o'></ins><ul id='WQx5o'></ul><sub id='WQx5o'></sub></form><legend id='WQx5o'></legend><bdo id='WQx5o'><pre id='WQx5o'><center id='WQx5o'></center></pre></bdo></b><th id='WQx5o'></th></span></q></dt></tr></i><div id='WQx5o'><tfoot id='WQx5o'></tfoot><dl id='WQx5o'><fieldset id='WQx5o'></fieldset></dl></div>

                  <tfoot id='WQx5o'></tfoot>