public class WGS84Util extends Object
EARTH_MEAN_RADIUS is used as radius.| Modifier and Type | Field and Description |
|---|---|
protected static double |
EARTH_MEAN_RADIUS
The mean radius of WGS84 ellipse.
|
static String |
EPSG_4326 |
| Constructor and Description |
|---|
WGS84Util() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getLatitudeDelta(double distance)
Calculates the latitude delta from a point from a given distance.
|
(package private) static double |
getLatitutesCircleRadius(double latitude) |
static double |
getLongitudeDelta(double latitude,
double distance)
Calculates the longitude delta for a given distance.
|
static double |
normalizeLatitude(double latitude)
Normalizes given latitude to bounds [-90.0,90.0].
|
static double |
normalizeLongitude(double longitude)
Normalizes given longitude to bounds [-180.0,180.0].
|
static double |
shortestDistanceBetween(com.vividsolutions.jts.geom.Point a,
com.vividsolutions.jts.geom.Point b)
Calculates the shortest distance between two points on a great circle.
|
public static final String EPSG_4326
protected static final double EARTH_MEAN_RADIUS
public static double shortestDistanceBetween(com.vividsolutions.jts.geom.Point a,
com.vividsolutions.jts.geom.Point b)
a - a point.b - another point.public static double getLongitudeDelta(double latitude,
double distance)
latitude - the latitude in radians to calculate the distance delta
from.distance - the distance in kilometer.public static double getLatitudeDelta(double distance)
distance - the distance in kilometer.static double getLatitutesCircleRadius(double latitude)
latitude - in degrees in radians.public static double normalizeLongitude(double longitude)
longitude - in degrees.public static double normalizeLatitude(double latitude)
latitude - in degrees.Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.