API / geotoolkit / contour / projections / mercatorprojection / MercatorProjection
projections.mercatorprojection.MercatorProjection
The projection class that projects latitude and longitude to mercator coordinates.
↳
MercatorProjection
Constructors
Methods
Constructors
• new MercatorProjection(minLatitude?, maxLatitude?)
| Name | Type | Description |
|---|---|---|
Optional minLatitude | number | The minimum latitude. |
Optional maxLatitude | number | The maximum latitude. |
AbstractProjection.constructor
Methods
▸ getClassName(): string
string
AbstractProjection.getClassName
▸ getId(): string
Gets the string identifier for this projection
string
id String identifier for this projection.
▸ getProperties(): AnyRecord
Gets the projection properties
properties Scale properties
AbstractProjection.getProperties
▸ getReverse(): AbstractProjection
Gets the inverse projection for this projection.
projection Projection representing the inverse of this projection.
▸ 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.
| Name | Type | Description |
|---|---|---|
x | Float64Array | The array of x-coordinates |
y | Float64Array | The array of y-coordinates |
size | number | The number of coordinates in the x and y arrays. |
Float64Array[]
projectedPath 2d array with the projected path.
AbstractProjection.projectPath
▸ projectPoint(x, y): Float64Array
Projects a single 3D point. This method allocates and returns the array of projected coordinates in x, y order.
| Name | Type | Description |
|---|---|---|
x | number | The x-coordinate |
y | number | The y-coordinate |
Float64Array
array The array with the x as the first element and y as the second element.
AbstractProjection.projectPoint
▸ 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.
| Name | Type | Description |
|---|---|---|
x | number[] | Float64Array | The array of x-coordinates |
y | number[] | Float64Array | The array of y-coordinates |
size | number | The number of coordinates in the x and y arrays. |
void
AbstractProjection.projectPoints
▸ setProperties(properties): MercatorProjection
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | AnyRecord | projection properties |
this
AbstractProjection.setProperties
▸ Static getClassName(): string
string