Projection Class

This class encapsulates the projection of the CRS. The projection relies on a projection method and a set of projection parameters specific to projection method selected to flatten the surface of the model of the Earth defines as a geodetic ellipsoid. The flattening and the distortion angular, linear, scale from the process varies between methods. Refer to appropriate external documentation for details.

@note Various property sets are required for specific projection methods. The current class implementation does not enforce these rules yet and it is possible to define or not define any property regardless the method used.

Implements

Methods

Name Description
constructor(_data?: ProjectionProps): Projection    
equals(other: Projection): boolean Compares two projections.  
toJSON(): ProjectionProps Creates a JSON from the Projection definition  
fromJSON(data: ProjectionProps): Projection Static Creates a Projection from JSON representation.  

Properties

Name Type Description
affine Readonly undefined | AffineTransform The definition of the affine post-transformation for Transverse Mercator and Lambert Conformal Conic with post-affine projections  
azimuth Readonly undefined | number Azimuth.  
centralMeridian Readonly undefined | number The Central Meridian.  
centralPointLatitude Readonly undefined | number Latitude of the central point.  
centralPointLongitude Readonly undefined | number Longitude of the central point.  
danishSystem34Region Readonly undefined | DanishSystem34Region The Danish zone for Danish projections.  
elevationAboveGeoid Readonly undefined | number The elevation of the origin of the projection above the geoid.  
falseEasting Readonly undefined | number The False Easting of the projection.  
falseNorthing Readonly undefined | number The False Northing of the projection.  
geoidSeparation Readonly undefined | number The geoid separation.  
hemisphere Readonly undefined | HemisphereEnum The hemisphere for Universal Transverse Mercator projection.  
latitudeOfOrigin Readonly undefined | number The latitude of origin of the projection.  
longitudeOfOrigin Readonly undefined | number Longitude of origin of the projection.  
method Readonly ProjectionMethod The projection method.  
point1Latitude Readonly undefined | number Latitude of the first alignment point for some Oblique Mercator and Krovak projections.  
point1Longitude Readonly undefined | number Longitude of the first alignment point for some Oblique Mercator and Krovak projections.  
point2Latitude Readonly undefined | number Latitude of the second alignment point for some Oblique Mercator projections.  
point2Longitude Readonly undefined | number Longitude of the second alignment point for some Oblique Mercator projections.  
scaleFactor Readonly undefined | number The scale reduction factor applied at origin.  
standardParallel Readonly undefined | number Standard parallel for projection that only use one.  
standardParallel1 Readonly undefined | number The first standard parallel at which the cone crosses the ellipsoid.  
standardParallel2 Readonly undefined | number The second standard parallel at which the cone crosses the ellipsoid.  
zoneNumber Readonly undefined | number The UTM zone number.  

Defined in

Last Updated: 16 April, 2024