Cartographic Class

A position on the earth defined by longitude, latitude, and height above the WGS84 ellipsoid.

Implements

Methods

Name Description
constructor(longitude: number = 0, latitude: number = 0, height: number = 0): Cartographic    
clone(result?: Cartographic): Cartographic Duplicates a Cartographic.  
equals(right: LatLongAndHeight): boolean Return true if this Cartographic is the same as right  
equalsEpsilon(right: LatLongAndHeight, epsilon: number): boolean Compares this Cartographic component-wise and returns true if they are within the provided epsilon,  
toEcef(result?: Point3d): Point3d Return an ECEF point from a Cartographic point  
toString(): string Create a string representing this cartographic in the format '(longitude, latitude, height)'.  
fromAngles(longitude: Angle, latitude: Angle, height: number, result?: Cartographic): Cartographic Static Create a new Cartographic from longitude and latitude in Angles.  
fromDegrees(longitude: number, latitude: number, height: number, result?: Cartographic): Cartographic Static Create a new Cartographic from longitude and latitude specified in degrees.  
fromEcef(cartesian: Point3d, result?: Cartographic): Cartographic | undefined Static Creates a new Cartographic from an ECEF position.  
fromRadians(longitude: number, latitude: number, height: number = 0, result?: Cartographic): Cartographic Static Create a new Cartographic from longitude and latitude specified in radians.  

Properties

Name Type Description
height ConstructorProperty number The height, in meters, above the ellipsoid.  
latitude ConstructorProperty number latitude, in radians.  
longitude ConstructorProperty number longitude, in radians.  

Defined in

Last Updated: 08 January, 2020