Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Projections

Retrieves the proj4 projection parameter string for an authority and coordinate code

Hierarchy

  • Projections

Index

Properties

Static PROJECTIONS_PROPERTY_FILE_PREFIX

PROJECTIONS_PROPERTY_FILE_PREFIX: "projections" = "projections"

Projections property file name prefix

Static PROJECTIONS_PROPERTY_FILE_SUFFIX

PROJECTIONS_PROPERTY_FILE_SUFFIX: "properties" = "properties"

Projections property file name suffix

Methods

Static clear

  • clear(): void

Static clearCache

  • clearCache(authority?: string): void
  • Clear cache for a given authority

    Parameters

    • Default value authority: string = null

    Returns void

Static getCRS84Projection

Static getCode

  • getCode(name: any): any
  • Gets the code from this projection's name

    Parameters

    • name: any

    Returns any

Static getMetersPerUnit

  • getMetersPerUnit(name: any): any
  • Gets metersPerUnit value from the projection, if provided

    Parameters

    • name: any

    Returns any

Static getProjection

  • getProjection(authority?: string, code: string | number, proj4String?: string): Projection
  • Get the proj4 projection string for the authority coordinate code

    Parameters

    • Default value authority: string = ProjectionConstants.AUTHORITY_EPSG

      coordinate authority

    • code: string | number

      coordinate code

    • Default value proj4String: string = undefined

      proj4 string

    Returns Projection

    proj4 projection

Static getProjectionForName

Static getProjectionTransformation

Static getUnits

  • getUnits(name: any): any
  • Gets the units of this projection, if available

    Parameters

    • name: any

    Returns any

Static getWGS84Projection

Static getWebMercatorProjection

Static isWGS84

Static isWebMercator

  • isWebMercator(proj: string | Projection): boolean

Static parseAuthorityAndCode

  • parseAuthorityAndCode(name: string): object
  • Parses the authority and code from a name

    Parameters

    • name: string

    Returns object

    • authority: any
    • code: any

Static projectionsEqual

Static setProjection

  • setProjection(authority?: string, code: string | number, proj4String: string): void
  • Set projections for an authority. They will only be stored in the cache.

    Parameters

    • Default value authority: string = ProjectionConstants.AUTHORITY_EPSG
    • code: string | number
    • proj4String: string

    Returns void

Static setProjections

  • setProjections(authority?: string, projections: any): void
  • Set projections for an authority. They will only be stored in the cache.

    Parameters

    • Default value authority: string = ProjectionConstants.AUTHORITY_EPSG
    • projections: any

    Returns void

Generated using TypeDoc