Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图找出哪个单元 JTS LineString.getLength() 返回。
例如:
LineString foo = (initialize line string somehow) foo.getLength() -> 7.025667228118838E-4
这些是公里?,米?,英尺?
这取决于您的坐标几何以哪个单位表示。如果您的坐标以米为单位,则周长也将以米为单位。
是度数。
com.vividsolutions.jts.geom.Geometry.getLength() 返回以米为单位的长度/周长。com.vividsolutions.jts.geom.Geometry.getArea() 返回以平方米为单位的面积。