GeographicProjection

external class GeographicProjection(val ellipsoid: Ellipsoid = definedExternally)(source)

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

See also

Constructors

Link copied to clipboard
constructor(ellipsoid: Ellipsoid = definedExternally)

Properties

Link copied to clipboard

The ellipsoid. Default value - Ellipsoid.default

Functions

Link copied to clipboard
fun project(cartographic: Cartographic, result: Cartesian3? = definedExternally): Cartesian3

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.

Link copied to clipboard
fun unproject(cartesian: Cartesian3, result: Cartographic? = definedExternally): Cartographic

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.