Last updated

API / geotoolkit / contour / projections / AbstractProjection / AbstractProjection

Class: AbstractProjection

projections.AbstractProjection.AbstractProjection

Abstract class for Projections (eg. LatLongProjection)

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new AbstractProjection()

new AbstractProjection()

Methods

getClassName

getClassName(): string

Returns

string


getId

Abstract getId(): string

Gets the string identifier for this projection

Returns

string

id String identifier for this projection.


getProperties

getProperties(): AnyRecord

Gets the projection properties

Returns

AnyRecord

properties Scale properties


getReverse

Abstract getReverse(): AbstractProjection

Gets the inverse projection for this projection.

Returns

AbstractProjection

projection Projection representing the inverse of this projection.


projectPath

Abstract projectPath(x, y, number): Float64Array[]

Projects a set of points in 3D space. This method allocates and returns the 2d array with projected data. The first index corresponds to x ordinate. The second index corresponds to the index of the point.

Parameters

Name Type Description
xFloat64ArrayThe array of x-coordinates
yFloat64ArrayThe array of y-coordinates
numbernumberThe number of coordinates in the x and y arrays.

Returns

Float64Array[]

projectedPath 2d array with the projected path.


projectPoint

Abstract projectPoint(x, y): Float64Array

Projects a single 3D point. This method allocates and returns the array of projected coordinates in x, y order.

Parameters

Name Type Description
xnumberThe x-coordinate
ynumberThe y-coordinate

Returns

Float64Array

array The array with the x as the first element and y as the second element.


projectPoints

Abstract projectPoints(x, y, number): void

Projects a set of points in 3D space. This method replaces the data in the source arrays with projected data and doesn't allocate any memory.

Parameters

Name Type Description
xnumber[] | Float64ArrayThe array of x-coordinates
ynumber[] | Float64ArrayThe array of y-coordinates
numbernumberThe number of coordinates in the x and y arrays.

Returns

void


setProperties

setProperties(properties): AbstractProjection

Sets the projection properties

Parameters

Name Type Description
propertiesAnyRecordprojection properties

Returns

AbstractProjection

this


getClassName

Static getClassName(): string

Returns

string