gpt4 book ai didi

java - com.vividsolutions.jts.geom.Geometry 类中的距离单位是什么?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:54:38 27 4
gpt4 key购买 nike

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

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

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

最佳答案

首先,我不知道这个API,我只是浏览了你给的链接。

根据 Coordinate 的 Javadocs 判断,它说:

[Coordinate is a] lightweight class used to store coordinates on the 2-dimensional Cartesian plane. It is distinct from Point, which is a subclass of Geometry. Unlike objects of type Point (which contain additional information such as an envelope, a precision model, and spatial reference system information)

因此,Geometry 本身似乎没有单位,但它的子类 Point 有,而且您可以指定它们。

如果 Geometry 类本身没有任何单位,而只是表示任何特定坐标系中空间点的概念,我不会感到惊讶。

关于java - com.vividsolutions.jts.geom.Geometry 类中的距离单位是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2155037/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com