public final class GeoUtils extends Object
Modifier and Type | Field and Description |
---|---|
static double |
EARTH_MEAN_RADIUS_METERS
mean earth axis in meters
|
static double |
MAX_LAT_INCL
Maximum latitude value.
|
static double |
MAX_LON_INCL
Maximum longitude value.
|
static double |
MIN_LAT_INCL
Minimum latitude value.
|
static double |
MIN_LON_INCL
Minimum longitude value.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkLatitude(double latitude)
validates latitude value is within standard +/-90 coordinate bounds
|
static void |
checkLongitude(double longitude)
validates longitude value is within standard +/-180 coordinate bounds
|
static GeoRect |
circleToBBox(double centerLat,
double centerLon,
double radiusMeters)
Compute Bounding Box for a circle using WGS-84 parameters
|
static GeoRect |
polyToBBox(double[] polyLats,
double[] polyLons)
Compute Bounding Box for a polygon using WGS-84 parameters
|
public static final double MIN_LON_INCL
public static final double MAX_LON_INCL
public static final double MIN_LAT_INCL
public static final double MAX_LAT_INCL
public static final double EARTH_MEAN_RADIUS_METERS
public static void checkLatitude(double latitude)
public static void checkLongitude(double longitude)
public static GeoRect circleToBBox(double centerLat, double centerLon, double radiusMeters)
public static GeoRect polyToBBox(double[] polyLats, double[] polyLons)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.