GeographicProjection

GeographicProjection

new

A simple map projection where longitude and latitude are linearly mapped to X and Y by multiplying them by the Ellipsoid#getMaximumRadius. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée. It is also known as EPSG:4326.

Parameters:
Name Type Argument Default Description
ellipsoid Ellipsoid <optional>
Ellipsoid.WGS84 The ellipsoid.
See:
Source:

Methods

Gets the Ellipsoid.

Returns:
Ellipsoid The ellipsoid.

Projects a set of Cartographic coordinates, in radians, to map coordinates, in meters. X and Y are the longitude and latitude, respectively, multiplied by the maximum radius of the ellipsoid. Z is the unmodified height.

Parameters:
Name Type Argument Description
cartographic Cartographic The coordinates to project.
result Cartesian3 <optional>
An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
Returns:
Cartesian3 The projected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.

Unprojects a set of projected Cartesian3 coordinates, in meters, to Cartographic coordinates, in radians. Longitude and Latitude are the X and Y coordinates, respectively, divided by the maximum radius of the ellipsoid. Height is the unmodified Z coordinate.

Parameters:
Name Type Argument Description
cartesian Cartesian3 The coordinate to unproject.
result Cartographic <optional>
An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
Returns:
Cartographic The unprojected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.