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
  • Constructor Details

  • 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

      public static double calculateDistance​(List<GeoUtils.LatLong> points)
      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