public class Mercator extends Projection
Constructor and Description |
---|
Mercator()
Creates a new Mercator projection
|
Modifier and Type | Method and Description |
---|---|
static Coord |
forwardMercator(double latitude,
double longitude)
Create a projected Mercator Coord from the given coordinate
|
Coord |
fromWGS84(Coord wgs84)
Create a projected Mercator Coord from the given coordinate
|
static Coord |
inverseMercator(double latitude,
double longitude)
Create a unprojected Coord(Latitude, Longitude) from the projected Coord
|
Coord |
toWGS84(Coord projection)
Create a Coord(Latitude, Longitude) from the projected Coord
|
extent, fromWGS84, fromWGS84, toWGS84
public static Coord forwardMercator(double latitude, double longitude)
latitude
- to projectlongitude
- to projectpublic static Coord inverseMercator(double latitude, double longitude)
latitude
- projected latitudelongitude
- projected longitudepublic Coord fromWGS84(Coord wgs84)
fromWGS84
in class Projection
wgs84
- coordinate to projectpublic Coord toWGS84(Coord projection)
toWGS84
in class Projection
wgs84
- projected Coord