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

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

      <tfoot id='wUitu'></tfoot><legend id='wUitu'><style id='wUitu'><dir id='wUitu'><q id='wUitu'></q></dir></style></legend>
        <bdo id='wUitu'></bdo><ul id='wUitu'></ul>
    2. com.vividsolutions.jts.geom.Geometry 类中的距离单位是什

      时间:2023-10-01

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

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

              • <legend id='ZKp6c'><style id='ZKp6c'><dir id='ZKp6c'><q id='ZKp6c'></q></dir></style></legend><tfoot id='ZKp6c'></tfoot>
                  <tbody id='ZKp6c'></tbody>

                <i id='ZKp6c'><tr id='ZKp6c'><dt id='ZKp6c'><q id='ZKp6c'><span id='ZKp6c'><b id='ZKp6c'><form id='ZKp6c'><ins id='ZKp6c'></ins><ul id='ZKp6c'></ul><sub id='ZKp6c'></sub></form><legend id='ZKp6c'></legend><bdo id='ZKp6c'><pre id='ZKp6c'><center id='ZKp6c'></center></pre></bdo></b><th id='ZKp6c'></th></span></q></dt></tr></i><div id='ZKp6c'><tfoot id='ZKp6c'></tfoot><dl id='ZKp6c'><fieldset id='ZKp6c'></fieldset></dl></div>
              • 本文介绍了com.vividsolutions.jts.geom.Geometry 类中的距离单位是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我们的 VB.NET 项目使用来自 Vivid Solutoins (com.vividsolutions.jts.geom.Geometry) 的 Java 库来进行几何计算.帮助在这里:http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html

                Our VB.NET project is using a Java library from Vivid Solutoins (com.vividsolutions.jts.geom.Geometry) to do Geometry calculations. The help is here: http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html

                我想不通的是专门用于 Buffer 属性的单位,或者与此相关的任何其他距离.我的程序正在处理海里,文档没有说明单位是度、英里、海里、公里、英寸等.

                What I can't figure out are the units specifically for the Buffer property, or any other distance for that matter. My program is dealing with Nautical Miles, and the documentation gives no indication if the units are degrees, miles, Nautical Miles, Kilometers, inches, etc.

                有没有人用过这个知道答案的库?提前致谢.

                Has anyone used this library who knows the answer? Thanks in advance.

                推荐答案

                这是一篇旧帖子,但对于其他正在寻找的人来说,这里是答案,因为令人难以置信的是 java 文档没有说明方法返回的单位.返回的距离以中心角为单位.然后,您可以使用任意数量的公式转换为所需的计量单位.最简单的是转换为弧度.1 弧度 = 180 度除以 pi (rad=180deg/pi).从那里,您可以用您选择的单位(例如 6371 公里)将弧度乘以地球的平均半径,以获得两点之间的距离.也有更准确的方法,但您可以在网上查找.

                This is an old post, but here is the answer for anyone else who is looking, since incredibly the java docs do not state the units returned by the method. The distance returned is in central angle degrees. You can then use any number of formulas to convert to your required unit of measure. The simplest is to convert to radians. 1 radian = 180 degrees divided by pi (rad=180deg/pi). From there, you can multiply radians by the average radius of the earth in your choice of units (6371 km for instance) to get distance between two points. More accurate methods are also available, but you can look them up on the net.

                这篇关于com.vividsolutions.jts.geom.Geometry 类中的距离单位是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:动态规划与背包应用 下一篇:在 Java 中将弧度转换为度数

                相关文章

                最新文章

                  <bdo id='UdKGn'></bdo><ul id='UdKGn'></ul>
              • <small id='UdKGn'></small><noframes id='UdKGn'>

              • <legend id='UdKGn'><style id='UdKGn'><dir id='UdKGn'><q id='UdKGn'></q></dir></style></legend>

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

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