API / geotoolkit / contour / projections / AbstractProjection / AbstractProjection
projections.AbstractProjection.AbstractProjection
Abstract class for Projections (eg. LatLongProjection)
AbstractProjection
Constructors
Methods
Methods
▸ getClassName(): string
string
▸ Abstract 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
▸ Abstract getReverse(): AbstractProjection
Gets the inverse projection for this projection.
projection Projection representing the inverse of this projection.
▸ 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.
| Name | Type | Description |
|---|---|---|
x | Float64Array | The array of x-coordinates |
y | Float64Array | The array of y-coordinates |
number | number | The number of coordinates in the x and y arrays. |
Float64Array[]
projectedPath 2d array with the projected path.
▸ Abstract 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.
▸ 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.
| Name | Type | Description |
|---|---|---|
x | number[] | Float64Array | The array of x-coordinates |
y | number[] | Float64Array | The array of y-coordinates |
number | number | The number of coordinates in the x and y arrays. |
void
▸ setProperties(properties): AbstractProjection
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | AnyRecord | projection properties |
this
▸ Static getClassName(): string
string