• <i id='x20Lf'><tr id='x20Lf'><dt id='x20Lf'><q id='x20Lf'><span id='x20Lf'><b id='x20Lf'><form id='x20Lf'><ins id='x20Lf'></ins><ul id='x20Lf'></ul><sub id='x20Lf'></sub></form><legend id='x20Lf'></legend><bdo id='x20Lf'><pre id='x20Lf'><center id='x20Lf'></center></pre></bdo></b><th id='x20Lf'></th></span></q></dt></tr></i><div id='x20Lf'><tfoot id='x20Lf'></tfoot><dl id='x20Lf'><fieldset id='x20Lf'></fieldset></dl></div>
    <legend id='x20Lf'><style id='x20Lf'><dir id='x20Lf'><q id='x20Lf'></q></dir></style></legend>
  • <small id='x20Lf'></small><noframes id='x20Lf'>

  • <tfoot id='x20Lf'></tfoot>

        • <bdo id='x20Lf'></bdo><ul id='x20Lf'></ul>

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

        时间:2023-09-30

        <small id='ILAuu'></small><noframes id='ILAuu'>

        1. <legend id='ILAuu'><style id='ILAuu'><dir id='ILAuu'><q id='ILAuu'></q></dir></style></legend>

          <tfoot id='ILAuu'></tfoot>
            <tbody id='ILAuu'></tbody>

                  <bdo id='ILAuu'></bdo><ul id='ILAuu'></ul>
                  <i id='ILAuu'><tr id='ILAuu'><dt id='ILAuu'><q id='ILAuu'><span id='ILAuu'><b id='ILAuu'><form id='ILAuu'><ins id='ILAuu'></ins><ul id='ILAuu'></ul><sub id='ILAuu'></sub></form><legend id='ILAuu'></legend><bdo id='ILAuu'><pre id='ILAuu'><center id='ILAuu'></center></pre></bdo></b><th id='ILAuu'></th></span></q></dt></tr></i><div id='ILAuu'><tfoot id='ILAuu'></tfoot><dl id='ILAuu'><fieldset id='ILAuu'></fieldset></dl></div>
                  本文介绍了如何在度、分、秒之间转换为十进制坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  寻找 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.

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

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

                  相关文章

                  最新文章

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

                    1. <tfoot id='lMHG4'></tfoot>
                    2. <small id='lMHG4'></small><noframes id='lMHG4'>