Package com.massifmaps.projections
Class EPSG3857
java.lang.Object
com.massifmaps.projections.Projection
com.massifmaps.projections.EPSG3857
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.
Z-coordinate denotes height in meters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTransforms a position from the WGS84 coordinate system to the coordinate system of this projection.getName()Return name of this projection in Well-Known format.Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.Methods inherited from class com.massifmaps.projections.Projection
equals, fromLatLong, getBounds, hashCode, toLatLong
-
Constructor Details
-
EPSG3857
public EPSG3857()
-
-
Method Details
-
fromWgs84
Description copied from class:ProjectionTransforms a position from the WGS84 coordinate system to the coordinate system of this projection.- Overrides:
fromWgs84in classProjection- 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.
-
toWgs84
Description copied from class:ProjectionTransforms a position from the coordinate system of this projection to the WGS84 coordinate system.- Overrides:
toWgs84in classProjection- 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.
-
getName
Description copied from class:ProjectionReturn name of this projection in Well-Known format. For example, as "EPSG:3857"- Overrides:
getNamein classProjection- Returns:
- The name of this projection.
-