Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryTransform

Geometry Projection Transform

Hierarchy

  • ProjectionTransform
    • GeometryTransform

Index

Constructors

constructor

  • new GeometryTransform(fromProjection: Projection, toProjection: Projection): GeometryTransform

Properties

_transform

_transform: Function

converter

converter: Converter

from

from: Projection

to

to: Projection

Methods

getConverter

  • getConverter(): Converter
  • Get the transform

    Returns Converter

    transform

getFromProjection

  • getFromProjection(): Projection
  • Get the from projection in the transform

    Returns Projection

    from projection

getInverseTransformation

getToProjection

  • getToProjection(): Projection
  • Get the to projection in the transform

    Returns Projection

    to projection

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]

transformCircularString

  • transformCircularString(circularString: CircularString): CircularString
  • Transform the projected circular string

    Parameters

    • circularString: CircularString

      circular string

    Returns CircularString

    projected circular string

transformCompoundCurve

  • transformCompoundCurve(compoundCurve: CompoundCurve): CompoundCurve
  • Transform the projected compound curve

    Parameters

    • compoundCurve: CompoundCurve

      compound curve

    Returns CompoundCurve

    projected compound curve

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]

transformCurvePolygon

  • transformCurvePolygon(curvePolygon: CurvePolygon<Curve>): CurvePolygon<Curve>
  • Transform the projected curve polygon

    Parameters

    • curvePolygon: CurvePolygon<Curve>

      curve polygon

    Returns CurvePolygon<Curve>

    projected curve polygon

transformEnvelope

  • transformEnvelope(envelope: GeometryEnvelope): GeometryEnvelope
  • Transform the geometry envelope

    Parameters

    • envelope: GeometryEnvelope

      geometry envelope

    Returns GeometryEnvelope

    geometry envelope

transformGeometry

  • transformGeometry(geometry: Geometry): Geometry

transformGeometryCollection

  • transformGeometryCollection(geometryCollection: GeometryCollection<Geometry>): GeometryCollection<Geometry>
  • Transform the projected geometry collection

    Parameters

    • geometryCollection: GeometryCollection<Geometry>
             geometry collection

    Returns GeometryCollection<Geometry>

    projected geometry collection

transformLineString

  • transformLineString(lineString: LineString): LineString
  • Transform the projected line string

    Parameters

    • lineString: LineString

      line string

    Returns LineString

    projected line string

transformMultiLineString

  • transformMultiLineString(multiLineString: MultiLineString): MultiLineString
  • Transform the projected multi line string

    Parameters

    • multiLineString: MultiLineString
             multi line string

    Returns MultiLineString

    projected multi line string

transformMultiPoint

  • transformMultiPoint(multiPoint: MultiPoint): MultiPoint
  • Transform the projected multi point

    Parameters

    • multiPoint: MultiPoint
             multi point

    Returns MultiPoint

    projected multi point

transformMultiPolygon

  • transformMultiPolygon(multiPolygon: MultiPolygon): MultiPolygon
  • Transform the projected multi polygon

    Parameters

    • multiPolygon: MultiPolygon

      multi polygon

    Returns MultiPolygon

    projected multi polygon

transformPoint

  • transformPoint(from: Point): Point

transformPoints

  • transformPoints(from: Array<Point>): Array<Point>
  • Transform a list of points

    Parameters

    • from: Array<Point>

      points to transform

    Returns Array<Point>

    transformed points

transformPolygon

  • transformPolygon(polygon: Polygon): Polygon
  • Transform the projected polygon

    Parameters

    • polygon: Polygon

      polygon

    Returns Polygon

    projected polygon

transformPolyhedralSurface

  • transformPolyhedralSurface(polyhedralSurface: PolyhedralSurface): PolyhedralSurface
  • Transform the projected polyhedral surface

    Parameters

    • polyhedralSurface: PolyhedralSurface

      polyhedral surface

    Returns PolyhedralSurface

    projected polyhedral surface

transformTIN

  • transformTIN(tin: TIN): TIN

transformTriangle

  • transformTriangle(triangle: Triangle): Triangle
  • Transform the projected triangle

    Parameters

    • triangle: Triangle
             triangle

    Returns Triangle

    projected triangle

Static create

Generated using TypeDoc