public class

EPSG3857

extends Projection
java.lang.Object
   ↳ com.carto.projections.Projection
     ↳ com.carto.projections.EPSG3857

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 Constructors
EPSG3857()
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
From class java.lang.Object

Public Constructors

public EPSG3857 ()

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.