Interface: Projection

Projection

Projection is an interface that provides 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 : Mizar owns different types of projection, which is used to represent a planet on a 2D map.
AitoffProjection Provides a AITOFF projection
AugustProjection Provides an august projection
AzimuthProjection Provides an azimuth projection
MercatorProjection Provides a mercator projection
MollweideProjection Provides a mollweide projection
PlateProjection Provides a plate carrée projection
See:

Methods


getProjectionCenter()

Returns the projection center.
Returns:
the projection center (longitude in degree, latitude in degree)
Type
Array.<float>

getGeoBound()

Returns the geobound
Returns:
Type
GeoBound

unProject(position3d, dest)

Unprojects coordinates from a given 2D map to world coordinates
Parameters:
Name Type Description
position3d Array.<float> 3D position on the map (x in pixel, y in pixel, altitude in meter)
dest Array.<float> physical position (longitude in degree, latitude in degree, altitude in meter)
Returns:
physical position (longitude in degree, latitude in degree, altitude in meter)
Type
Array.<float>

project(geoPos, dest)

Projects the world coordinates to a given 2D map
Parameters:
Name Type Description
geoPos Array.<float> physical position (longitude in degree, latitude in degree, altitude in meter)
dest Array.<float> position on the map (x in pixel, y in pixel, altitude in meter)
Returns:
position on the map (x in pixel, y in pixel, altitude in meter)
Type
Array.<float>