Skip to content
Last updated

API / geotoolkit / contour / projections / mercatorprojection / InverseMercatorProjection

Class: InverseMercatorProjection

projections.mercatorprojection.InverseMercatorProjection

The projection class that projects mercator coordinates to latitude and longitude.

Hierarchy

Table of contents

Constructors
  • [new InverseMercatorProjection(minMercatorY, maxMercatorY)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.contour.projections.mercatorprojection.inversemercatorprojection.md#new inversemercatorprojection(minmercatory, maxmercatory))
Methods

Contents

Constructors

new InverseMercatorProjection(minMercatorY, maxMercatorY)

• new InverseMercatorProjection(minMercatorY, maxMercatorY)

Parameters

Name Type Description
minMercatorYnumberThe minimum mercator Y.
maxMercatorYnumberThe maximum mercator Y.

Overrides

AbstractProjection.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractProjection.getClassName


getId

▸ getId(): string

Gets the string identifier for this projection

Returns

string

id String identifier for this projection.

Overrides

AbstractProjection.getId


getProperties

▸ getProperties(): AnyRecord

Gets the projection properties

Returns

AnyRecord

properties Scale properties

Inherited from

AbstractProjection.getProperties


getReverse

▸ getReverse(): AbstractProjection

Gets the inverse projection for this projection.

Returns

AbstractProjection

projection Projection representing the inverse of this projection.

Overrides

AbstractProjection.getReverse


projectPath

▸ projectPath(x, y, size): 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
sizenumberThe number of coordinates in the x and y arrays.

Returns

Float64Array[]

projectedPath 2d array with the projected path.

Overrides

AbstractProjection.projectPath


projectPoint

▸ 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.

Overrides

AbstractProjection.projectPoint


projectPoints

▸ projectPoints(x, y, size?): 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
Optional sizenumberThe number of coordinates in the x and y arrays.

Returns

void

Overrides

AbstractProjection.projectPoints


setProperties

▸ setProperties(properties): InverseMercatorProjection

Sets the projection properties

Parameters

Name Type Description
propertiesAnyRecordprojection properties

Returns

InverseMercatorProjection

this

Inherited from

AbstractProjection.setProperties


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractProjection.getClassName