Class GCS

Geodetic coordinate system.

Hierarchy-Diagram

UML class diagram of GCS
Legend
icon for a class in the UML class diagram class

Hierarchy

Constructors

Properties

EARTH_ECCENTRICITY: 0.081819190842622 = 8.1819190842622e-2
EARTH_EQUATORIAL_RADIUS: 6378137 = 6378137
EARTH_POLAR_RADIUS: 6356752.3142 = 6356752.3142
EARTH_RADIUS_MEAN: 6371008.7714 = 6371008.7714
ECEF: GCS = ...
EPSG3857: GCS = ...
EPSG4326: GCS = ...
UNITS: Map<string, Unit> = ...
UNIT_BASES: Map<string, string> = ...
UNKNOWN: Unit = ...
WGS84: GCS = GCS.EPSG4326

Accessors

  • get aliases(): string[]
  • Unit aliases

    Returns

    Alias names as array

    Returns string[]

  • get EARTH_RADIUS(): number
  • Deprecated

    Use GCS.EARTH_RADIUS_MEAN

    Returns

    Mean earth radius

    Returns number

Methods

  • Convert a value in the current unit to a target unit

    Returns

    Converted unit

    Type Parameters

    Parameters

    • value: T

      Value to convert

    • target: string | Unit

      Target unit

    Returns T

  • Convert a value from a specific unit to a target unit

    Returns

    Converted unit

    Type Parameters

    Parameters

    • value: T

      Value to convert

    • from: string | Unit

      Source unit

    • to: string | Unit

      Target unit

    Returns T

  • Find a unit by its name

    Returns

    Unit if found

    Parameters

    • name: string

      Unit name

    • Optional baseName: string

      Optional base name to specific result

    Returns Unit

  • Get a unit from JSON

    Returns

    Unit if found

    Type Parameters

    Parameters

    • json: any

      JSON object

    Returns T