Class Overview
EPSG:3857 is a Spherical Mercator projection coordinate system popularized by web services such as Google and later OpenStreetMap.
Z-coordinate denotes height in meters.
Summary
Public Methods |
synchronized
void
|
delete()
|
MapPos
|
fromWgs84(MapPos wgs84Pos)
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
|
String
|
getName()
Return name of this projection in Well-Known format.
|
MapPos
|
toWgs84(MapPos mapPos)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
|
[Expand]
Inherited Methods |
From class
com.carto.projections.Projection
synchronized
void
|
delete()
|
boolean
|
equals(Object obj)
Checks if this object is equal to the specified object.
|
MapPos
|
fromLatLong(double lat, double lng)
Transforms a position given using latitutde-longitude coordinates from the WGS84 coordinate system to the coordinate system of this projection.
|
MapPos
|
fromWgs84(MapPos pos)
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
|
MapBounds
|
getBounds()
Returns the bounds of this projection.
|
String
|
getName()
Return name of this projection in Well-Known format.
|
int
|
hashCode()
Returns the hash value of this object.
|
MapPos
|
toLatLong(double x, double y)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system latitude-longitute coordinates.
|
MapPos
|
toWgs84(MapPos pos)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
|
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
public
synchronized
void
delete
()
public
MapPos
fromWgs84
(MapPos wgs84Pos)
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
Parameters
wgs84Pos |
The position in the WGS84 coordinate system. It should be encoded as longitude-latitude.
|
Returns
- The transformed position in the coordinate system of this projection.
public
String
getName
()
Return name of this projection in Well-Known format. For example, as "EPSG:3857"
Returns
- The name of this projection.
public
MapPos
toWgs84
(MapPos mapPos)
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
Parameters
mapPos |
The position in the coordinate system of this projection.
|
Returns
- The transformed position in the WGS84 coordinate system. It is given as longitude-latitude.