I'm trying to figure out which unit J开发者_StackOverflow社区TS LineString.getLength() return.
for example:
LineString foo = (initialize line string somehow)
foo.getLength() -> 7.025667228118838E-4
Are these Kilometers?, Meters?, Feet?
It depends in which unit your coordinate geometries are expressed. If your coordinates are in meters, the perimeter will also be in meters.
It's in degrees.
com.vividsolutions.jts.geom.Geometry.getLength() returns a length/perimeter in meters. com.vividsolutions.jts.geom.Geometry.getArea() returns an area in squaremeters.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论