Package org.javarosa.core.util
Class GeoUtils
java.lang.Object
org.javarosa.core.util.GeoUtils
public final class GeoUtils extends Object
Author: Meletis Margaritis
Date: 8/4/14
Time: 1:38 PM
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoUtils.LatLong -
Constructor Summary
Constructors Constructor Description GeoUtils() -
Method Summary
Modifier and Type Method Description static doublecalculateAreaOfGPSPolygonOnEarthInSquareMeters(List<GeoUtils.LatLong> latLongs)Calculates the enclosed area that is defined by a list of gps coordinates on earth.static doublecalculateDistance(List<GeoUtils.LatLong> points)Returns the sum of the distances between points[i] and [i - 1], for all points starting with the second point
-
Constructor Details
-
GeoUtils
public GeoUtils()
-
-
Method Details
-
calculateAreaOfGPSPolygonOnEarthInSquareMeters
public static double calculateAreaOfGPSPolygonOnEarthInSquareMeters(List<GeoUtils.LatLong> latLongs)Calculates the enclosed area that is defined by a list of gps coordinates on earth.- Parameters:
latLongs- the list of coordinates.- Returns:
- the enclosed area in square meters (with a double precision).
-
calculateDistance
Returns the sum of the distances between points[i] and [i - 1], for all points starting with the second point- Parameters:
points- the points between which the distances are to be summed- Returns:
- the sum of the distances, in meters
-