Constructors

  • This class offers several methods for interacting with a wrapped pro4js projection object.

    Parameters

    • projCode: string
    • Optionaloptions: any

    Returns Projection

Methods

  • Set a custom transform method between two projections. Use this method in cases where the proj4js lib is not available or where custom projections need to be handled.

    Parameters

    • from: string
    • to: string
    • method: () => void

    Returns void

  • Get the string SRS code.

    Returns string

  • Get the units string for the projection -- returns null if proj4js is not available.

    Returns string

  • A null transformation useful for defining projection aliases when proj4js is not available:

    Parameters

    • point: {}

    Returns Function

  • Transform a point coordinate from one projection to another. Note that the input point is transformed in place.

    Parameters

    Returns {}

  • Transform a point coordinate from one projection to another. Note that the input point is transformed in place.

    Parameters

    Returns {}