Interface: GeoProjection
Defined in: src/sdk/geo/GeoProjection.ts:11
A geographic projection.
Extended by
Methods
getCenter()
getCenter():
GeoPointReadOnly
Defined in: src/sdk/geo/GeoProjection.ts:16
Gets the geographic center of this projection.
Returns
The geographic center of this projection.
getPostRotation()
getPostRotation():
number
Defined in: src/sdk/geo/GeoProjection.ts:51
Gets the post-projection (planar) rotation angle of this projection in radians.
Returns
number
The post-projection rotation angle of this projection.
getPreRotation()
getPreRotation():
ReadonlyFloat64Array
Defined in: src/sdk/geo/GeoProjection.ts:39
Gets the pre-projection (spherical) rotation of this projection as a vector [lambda, phi, gamma]. The rotation
angles are expressed in radians. The full rotation is an intrinsic rotation with angles applied in the order
lambda, phi, gamma. The rotation uses the standard geographic cartesian coordinate system, a right-handed
coordinate system with the origin at the center of the earth, the positive x axis passing through 0 degrees N,
0 degrees E, and the positive z axis passing through the North Pole.
lambda: Intrinsic rotation angle about the z axis. Positive rotation is in the counterclockwise direction when looking down from above the axis.phi: Intrinsic rotation angle about the y axis. Positive rotation is in the clockwise direction when looking down from above the axis.gamma: Intrinsic rotation angle about the x axis. Positive rotation is in the counterclockwise direction when looking down from above the axis.
Returns
The pre-projection rotation of this projection.
getReflectY()
getReflectY():
boolean
Defined in: src/sdk/geo/GeoProjection.ts:57
Checks whether this projection reflects the projected coordinate system across the x-axis.
Returns
boolean
Whether this projection reflects the projected coordinate system across the x-axis.
getScaleFactor()
getScaleFactor():
number
Defined in: src/sdk/geo/GeoProjection.ts:23
Gets the nominal scale factor of this projection. At a scale factor of 1, a distance of one great-arc radian will be projected to a distance of one pixel.
Returns
number
The nominal scale factor of this projection.
getTranslation()
getTranslation():
ReadonlyFloat64Array
Defined in: src/sdk/geo/GeoProjection.ts:45
Gets the post-projection (planar) translation of this projection, in pixels.
Returns
The post-projection translation of this projection.
invert()
invert<
T>(vec,out):T
Defined in: src/sdk/geo/GeoProjection.ts:74
Inverts a set of projected coordinates. This method will determine the geographic point whose projected location is the equal to that described by a 2D position vector.
Type Parameters
| Type Parameter |
|---|
T extends Float64Array<ArrayBufferLike> | GeoPoint |
Parameters
| Parameter | Type | Description |
|---|---|---|
vec | ReadonlyFloat64Array | The 2D position vector describing the location of the projected coordinates. |
out | T | The point to which to write the result. |
Returns
T
the inverted point.
project()
project(
point,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:65
Projects a set of lat/lon coordinates.
Parameters
| Parameter | Type | Description |
|---|---|---|
point | Readonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">> | Readonly<LatLonInterface> | The point to project, as either a LatLonInterface or a [lon, lat] array. |
out | Float64Array | The vector to which to write the result. |
Returns
Float64Array
The projected point, as a vector.