Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProjectionTransform

Hierarchy

  • ProjectionTransform

Index

Constructors

constructor

Properties

_transform

_transform: Function

converter

converter: Converter

from

to

Methods

getConverter

  • getConverter(): Converter

getFromProjection

getInverseTransformation

getToProjection

transform

  • transform(x: number, y: number): Array<number>
  • Transform a x and y location

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    Returns Array<number>

    transformed coordinates as [x, y]

transformBounds

  • transformBounds(minX: number, minY: number, maxX: number, maxY: number): Array<number>
  • Transform the coordinate bounds

    Parameters

    • minX: number

      min x

    • minY: number

      min y

    • maxX: number

      max x

    • maxY: number

      max y

    Returns Array<number>

    transformed coordinate bounds as [minX, minY, maxX, maxY]

transformCoordinate

  • transformCoordinate(coordinate: InterfaceCoordinates): InterfaceCoordinates
  • Transform InterfaceCoordinates

    Parameters

    • coordinate: InterfaceCoordinates

    Returns InterfaceCoordinates

    transformed coordinates as {x, y}

transformCoordinateArray

  • transformCoordinateArray(array: Array<number>): Array<number>
  • Transform a coordinates array

    Parameters

    • array: Array<number>

      coordinate

    Returns Array<number>

    transformed coordinates as [x, y]

Generated using TypeDoc