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, toWGS84Modifier and TypeMethodDescriptionextent()Gets the projection bounding boxfinal BoundingBoxfromWGS84(BoundingBox bbox) Converts a WGS84 bounding box to the projection system bounding boxfinal Coord[]a utility method that converts an array of WGS84 coordinate to the projection coordinates system.final BoundingBoxtoWGS84(BoundingBox bbox) Converts a projected bounding box to a WGS84 bounding boxMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-