public final class GeoUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoUtils.GPSCoordinates |
Modifier and Type | Field and Description |
---|---|
private static double |
EARTH_RADIUS |
Constructor and Description |
---|
GeoUtils() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Double |
calculateAreaInSquareMeters(double x1,
double x2,
double y1,
double y2) |
static double |
calculateAreaOfGPSPolygonOnEarthInSquareMeters(java.util.List<GeoUtils.GPSCoordinates> gpsCoordinatesList)
Calculates the enclosed area that is defined by a list of gps coordinates on earth.
|
private static double |
calculateAreaOfGPSPolygonOnSphereInSquareMeters(java.util.List<GeoUtils.GPSCoordinates> gpsCoordinatesList,
double radius)
Calculates the enclosed area that is defined by a list of gps coordinates on a sphere.
|
private static double |
calculateXSegment(double longitudeRef,
double longitude,
double latitude,
double circumference) |
private static double |
calculateYSegment(double latitudeRef,
double latitude,
double circumference) |
private static final double EARTH_RADIUS
public static double calculateAreaOfGPSPolygonOnEarthInSquareMeters(java.util.List<GeoUtils.GPSCoordinates> gpsCoordinatesList)
gpsCoordinatesList
- the list of coordinates.private static double calculateAreaOfGPSPolygonOnSphereInSquareMeters(java.util.List<GeoUtils.GPSCoordinates> gpsCoordinatesList, double radius)
gpsCoordinatesList
- the list of coordinates.radius
- the radius of the sphere in meters.private static java.lang.Double calculateAreaInSquareMeters(double x1, double x2, double y1, double y2)
private static double calculateYSegment(double latitudeRef, double latitude, double circumference)
private static double calculateXSegment(double longitudeRef, double longitude, double latitude, double circumference)