Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransformServiceInterface

Provide access to coordinate reference systems and to transforms between them.

For convenience, this service provides a transform from WGS 84 to local Cartesian coordinates, as well as the inverse transform. The local coordinate system will be relocated occasionally. Subscribe to the related signals to get notified when that occurs and recompute all local coordinates.

Hierarchy

  • TransformServiceInterface

Index

Properties

Readonly crsGlobal

WGS 84 coordinate reference system (EPSG:4326)

Readonly crsLocal

Local working coordinate reference system (NAVVIS:LOCAL)

Readonly globalToLocal

globalToLocal: TransformInterface

Transform from WGS 84 to the local working coordinate system

Readonly localReferenceSystemReady

localReferenceSystemReady: Promise<void>

Promise that resolves when the local reference system has been set

Readonly localToGlobal

localToGlobal: TransformInterface

Transform from local working coordinate system to WGS 84

Readonly onAfterLocalReferenceSystemChange

onAfterLocalReferenceSystemChange: Signal<() => void>

Signal that is emitted after the local reference system has been changed

Readonly onBeforeLocalReferenceSystemChange

onBeforeLocalReferenceSystemChange: Signal<() => void>

Signal that is emitted before the local reference system is changed

Readonly referenceSystems

referenceSystems: ReferenceSystemInterface[]

List of registered reference systems

Methods

downloadProj4Definition

  • downloadProj4Definition(epsgName: string): Promise<void>
  • Download the Proj.4 definition for the provided EPSG coordinate reference system and add it to Proj4js' definitions.

    Parameters

    • epsgName: string

      Name of the system, e.g. "EPSG:31468".

    Returns Promise<void>

    Promise that resolves when the download has completed.

getReferenceSystem

  • Get a coordinate reference system by name (e.g. "EPSG:4326" or "NAVVIS:LOCAL").

    Throws a {@link ReferenceSystemNotFoundException} if the reference system cannot be found.

    Parameters

    • name: string

      Reference system name (AUTHORITY:ID)

    Returns ReferenceSystemInterface

getTransform

Generated using TypeDoc