Class Mercator
java.lang.Object
com.codename1.maps.Projection
com.codename1.maps.Mercator
Represents a Mercator projection http://en.wikipedia.org/wiki/Mercator_projection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordforwardMercator(double latitude, double longitude) Create a projected Mercator Coord from the given coordinateCreate a projected Mercator Coord from the given coordinatestatic CoordinverseMercator(double latitude, double longitude) Create a unprojected Coord(Latitude, Longitude) from the projected CoordCreate a Coord(Latitude, Longitude) from the projected CoordMethods inherited from class Projection
extent, fromWGS84, fromWGS84, toWGS84
-
Constructor Details
-
Mercator
public Mercator()Creates a new Mercator projection
-
-
Method Details
-
forwardMercator
Create a projected Mercator Coord from the given coordinate
Parameters
-
latitude: to project -
longitude: to project
Returns
a projected Mercator
-
-
inverseMercator
Create a unprojected Coord(Latitude, Longitude) from the projected Coord
Parameters
-
latitude: projected latitude -
longitude: projected longitude
Returns
unprojected Coord
-
-
fromWGS84
Create a projected Mercator Coord from the given coordinate
Parameters
wgs84: coordinate to project
Returns
projected Mercator Coord
- Specified by:
fromWGS84in classProjection
-
toWGS84
Create a Coord(Latitude, Longitude) from the projected Coord
Parameters
wgs84: projected Coord
Returns
unprojected Latitude, Longitude
- Specified by:
toWGS84in classProjection
-