I am trying to figure out which device returns JTS LineString.getLength ().
eg:
LineString foo = (initialize line string somehow) foo.getLength() -> 7.025667228118838E-4
Are these kilometers ?, meters ?, feet?
In degrees.
Depending on in which part your coordinate geometries are expressed. If your coordinates are in meters, the perimeter will also be in meters.
com.vividsolutions.jts.geom.Geometry.getLength () returns the length / perimeter in meters. com.vividsolutions.jts.geom.Geometry.getArea () returns the area in square meters.
Source: https://habr.com/ru/post/1750277/More articles:What makes a website “ready” for delivery to a customer? - htmlкак решить проблему дизайна в моем приложении с помощью Spring + iBatis - javaHow to save an object in fooSettings.settings file in Visual Studio? - c #C # Active Directory through WMI - c #JAVA - strange problem (maybe a thread issue) with JTable & Model - javaSync in Robotium - androidAppEngine: Is it possible to write a dynamic property (db.Expando) with the name selected at run time? - pythonWhy does the behavior of Response.Write change in this scenario? - c #simple question: the difficulty of declaring and using a variable - asp.net-mvcSimulation software for designing a network serialization protocol - designAll Articles