<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>

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

      how to convert between degrees, minutes, seconds to Decimal coordinates(如何在度、分、秒之间转换为十进制坐标)

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

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

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
              • <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>

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