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

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

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

        时间:2023-05-28

        <tfoot id='1qpLV'></tfoot>
            <tbody id='1qpLV'></tbody>

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

              <small id='1qpLV'></small><noframes id='1qpLV'>

              • <bdo id='1qpLV'></bdo><ul id='1qpLV'></ul>
                  <legend id='1qpLV'><style id='1qpLV'><dir id='1qpLV'><q id='1qpLV'></q></dir></style></legend>
                  本文介绍了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 类中的距离单位是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文章

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

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

                      • <bdo id='Jlbcs'></bdo><ul id='Jlbcs'></ul>
                      <tfoot id='Jlbcs'></tfoot>