public final class MercatorProjection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static double |
EARTH_CIRCUMFERENCE
The circumference of the earth at the equator in meters.
|
static double |
LATITUDE_MAX
Maximum possible latitude coordinate of the map.
|
static double |
LATITUDE_MIN
Minimum possible latitude coordinate of the map.
|
static double |
LONGITUDE_MAX
Maximum possible longitude coordinate of the map.
|
static double |
LONGITUDE_MIN
Minimum possible longitude coordinate of the map.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
groundResolution(double latitude,
double scale)
Calculates the distance on the ground that is represented by a single
pixel on the map.
|
static float |
groundResolution(MapPosition pos) |
static double |
latitudeToY(double latitude)
Projects a latitude coordinate (in degrees) to the range [0.0,1.0]
|
static double |
limitLatitude(double latitude) |
static double |
limitLongitude(double longitude) |
static double |
longitudeToX(double longitude)
Projects a longitude coordinate (in degrees) to the range [0.0,1.0]
|
static void |
project(double latitude,
double longitude,
double[] out,
int pos) |
static void |
project(GeoPoint p,
double[] out,
int pos) |
static Point |
project(GeoPoint p,
Point reuse) |
static double |
toLatitude(double y) |
static double |
toLongitude(double x) |
static double |
wrapLongitude(double longitude) |
public static final double EARTH_CIRCUMFERENCE
public static final double LATITUDE_MAX
public static final double LATITUDE_MIN
public static final double LONGITUDE_MAX
public static final double LONGITUDE_MIN
public static double groundResolution(double latitude,
double scale)
latitude - the latitude coordinate at which the resolution should be
calculated.scale - the map scale at which the resolution should be calculated.public static float groundResolution(MapPosition pos)
public static double latitudeToY(double latitude)
latitude - the latitude coordinate that should be converted.public static double toLatitude(double y)
public static double longitudeToX(double longitude)
longitude - the longitude coordinate that should be converted.public static double toLongitude(double x)
public static void project(GeoPoint p, double[] out, int pos)
public static void project(double latitude,
double longitude,
double[] out,
int pos)
public static double limitLatitude(double latitude)
latitude - the latitude value which should be checked.public static double limitLongitude(double longitude)
longitude - the longitude value which should be checked.public static double wrapLongitude(double longitude)