Class: AbstractProjection

AbstractProjection

Abstract class for projections. A map projection is one of many methods used to represent the 3-dimensional surface of the earth or other round body on a 2-dimensional plane in cartography. The creation of a map projection involves two steps :
  • selection of a model for the shape of the body (choosing between a sphere or ellipsoid),
  • transform planetographic coordinates to plane coordinates.

new AbstractProjection(projectionCenter, geoBound, options)

Parameters:
Name Type Description
projectionCenter Array.<float> the projection center as (longitude, latitude)
geoBound Array.<float> Geo boundary as [minLongitude, minLatitude, maxLongitude, maxLatitude]
options AbstractProjection.configuration Not used currently
Implements:

Methods


getProjectionCenter()

Implements:

getGeoBound()

Implements:

<abstract> unProject()

Implements:

<abstract> project()

Implements:

Type Definitions


configuration

Base projection configuration
Type:
  • Object
Properties:
Name Type Description
projectionName PROJECTION Name of the projection

azimuth_configuration

Azimuthal projection configuration
Type:
Properties:
Name Type Argument Default Description
pole string <optional>
"north" Projection center. It can be "north" or "south"

mercator_configuration

Mercator projection configuration
Type:
Properties:
Name Type Argument Default Description
lambda0 float <optional>
0.0 the longitude of an arbitrary central meridian usually(but not always) Greenwich, in degrees (default value is 0)