Class: MercatorProjection
Defined in: src/sdk/geo/GeoProjection.ts:437
A Mercator projection.
Extends
AbstractGeoProjection
Constructors
Constructor
new MercatorProjection():
MercatorProjection
Returns
MercatorProjection
Inherited from
AbstractGeoProjection.constructor
Properties
center
protectedreadonlycenter:GeoPoint
Defined in: src/sdk/geo/GeoProjection.ts:155
Inherited from
AbstractGeoProjection.center
centerTranslation
protectedreadonlycenterTranslation:Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:156
Inherited from
AbstractGeoProjection.centerTranslation
postRotation
protectedpostRotation:number=0
Defined in: src/sdk/geo/GeoProjection.ts:160
Inherited from
AbstractGeoProjection.postRotation
preRotation
protectedreadonlypreRotation:Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:158
Inherited from
AbstractGeoProjection.preRotation
preRotationForwardTransform
protectedreadonlypreRotationForwardTransform:Transform3D
Defined in: src/sdk/geo/GeoProjection.ts:165
Inherited from
AbstractGeoProjection.preRotationForwardTransform
preRotationReverseTransform
protectedreadonlypreRotationReverseTransform:Transform3D
Defined in: src/sdk/geo/GeoProjection.ts:166
Inherited from
AbstractGeoProjection.preRotationReverseTransform
reflectY
protectedreflectY:number=1
Defined in: src/sdk/geo/GeoProjection.ts:163
Inherited from
AbstractGeoProjection.reflectY
rotationCos
protectedrotationCos:number=1
Defined in: src/sdk/geo/GeoProjection.ts:162
Inherited from
AbstractGeoProjection.rotationCos
rotationSin
protectedrotationSin:number=0
Defined in: src/sdk/geo/GeoProjection.ts:161
Inherited from
AbstractGeoProjection.rotationSin
scaleFactor
protectedscaleFactor:number
Defined in: src/sdk/geo/GeoProjection.ts:157
Inherited from
AbstractGeoProjection.scaleFactor
translation
protectedreadonlytranslation:Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:159
Inherited from
AbstractGeoProjection.translation
Methods
copyParametersFrom()
copyParametersFrom(
other):this
Defined in: src/sdk/geo/GeoProjection.ts:242
Parameters
| Parameter | Type |
|---|---|
other | GeoProjection |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.copyParametersFrom
getCenter()
getCenter():
GeoPointReadOnly
Defined in: src/sdk/geo/GeoProjection.ts:171
Returns
Inherit Doc
Inherited from
AbstractGeoProjection.getCenter
getPostRotation()
getPostRotation():
number
Defined in: src/sdk/geo/GeoProjection.ts:191
Returns
number
Inherit Doc
Inherited from
AbstractGeoProjection.getPostRotation
getPreRotation()
getPreRotation():
ReadonlyFloat64Array
Defined in: src/sdk/geo/GeoProjection.ts:181
Returns
Inherit Doc
Inherited from
AbstractGeoProjection.getPreRotation
getReflectY()
getReflectY():
boolean
Defined in: src/sdk/geo/GeoProjection.ts:196
Returns
boolean
Inherit Doc
Inherited from
AbstractGeoProjection.getReflectY
getScaleFactor()
getScaleFactor():
number
Defined in: src/sdk/geo/GeoProjection.ts:176
Returns
number
Inherit Doc
Inherited from
AbstractGeoProjection.getScaleFactor
getTranslation()
getTranslation():
ReadonlyFloat64Array
Defined in: src/sdk/geo/GeoProjection.ts:186
Returns
Inherit Doc
Inherited from
AbstractGeoProjection.getTranslation
invert()
invert<
T>(vec,out):T
Defined in: src/sdk/geo/GeoProjection.ts:397
Type Parameters
| Type Parameter |
|---|
T extends Float64Array | GeoPoint |
Parameters
| Parameter | Type |
|---|---|
vec | ReadonlyFloat64Array |
out | T |
Returns
T
Inherit Doc
Inherited from
AbstractGeoProjection.invert
invertRaw()
protectedinvertRaw(vec,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:456
Inverts a raw projection.
Parameters
| Parameter | Type | Description |
|---|---|---|
vec | ReadonlyFloat64Array | a 2D vector describing the projected point to invert. |
out | Float64Array | a 2D vector to which to write the result. |
Returns
Float64Array
the inverted point.
Overrides
AbstractGeoProjection.invertRaw
preRotateForward()
protectedpreRotateForward(vec,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:299
Applies a forward rotation to a set of lat/lon coordinates using this projection's pre-projection rotation angles.
Parameters
| Parameter | Type | Description |
|---|---|---|
vec | ReadonlyFloat64Array | the lat/lon coordinates to rotate, as a vector ([long, lat]). |
out | Float64Array | the vector to which to write the result. |
Returns
Float64Array
the rotated lat/lon coordinates.
Inherited from
AbstractGeoProjection.preRotateForward
preRotateReverse()
protectedpreRotateReverse(vec,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:331
Applies a reverse rotation to a set of lat/lon coordinates using this projection's pre-projection rotation angles.
Parameters
| Parameter | Type | Description |
|---|---|---|
vec | ReadonlyFloat64Array | the lat/lon coordinates to rotate, as a vector ([long, lat]). |
out | Float64Array | the vector to which to write the result. |
Returns
Float64Array
the rotated lat/lon coordinates.
Inherited from
AbstractGeoProjection.preRotateReverse
project()
project(
point,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:361
Parameters
| Parameter | Type |
|---|---|
point | Readonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterface |
out | Float64Array |
Returns
Float64Array
Inherit Doc
Inherited from
AbstractGeoProjection.project
projectRaw()
protectedprojectRaw(vec,out):Float64Array
Defined in: src/sdk/geo/GeoProjection.ts:444
Applies a raw projection.
Parameters
| Parameter | Type | Description |
|---|---|---|
vec | ReadonlyFloat64Array | a [lon, lat] vector describing the geographic point to project. |
out | Float64Array | a 2D vector to which to write the result. |
Returns
Float64Array
the projected point.
Overrides
AbstractGeoProjection.projectRaw
setCenter()
setCenter(
point):this
Defined in: src/sdk/geo/GeoProjection.ts:201
Parameters
| Parameter | Type |
|---|---|
point | LatLonInterface |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setCenter
setPostRotation()
setPostRotation(
rotation):this
Defined in: src/sdk/geo/GeoProjection.ts:228
Parameters
| Parameter | Type |
|---|---|
rotation | number |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setPostRotation
setPreRotation()
setPreRotation(
vec):this
Defined in: src/sdk/geo/GeoProjection.ts:214
Parameters
| Parameter | Type |
|---|---|
vec | ReadonlyFloat64Array |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setPreRotation
setReflectY()
setReflectY(
val):this
Defined in: src/sdk/geo/GeoProjection.ts:236
Parameters
| Parameter | Type |
|---|---|
val | boolean |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setReflectY
setScaleFactor()
setScaleFactor(
factor):this
Defined in: src/sdk/geo/GeoProjection.ts:208
Parameters
| Parameter | Type |
|---|---|
factor | number |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setScaleFactor
setTranslation()
setTranslation(
vec):this
Defined in: src/sdk/geo/GeoProjection.ts:222
Parameters
| Parameter | Type |
|---|---|
vec | ReadonlyFloat64Array |
Returns
this
Inherit Doc
Inherited from
AbstractGeoProjection.setTranslation
updateCenterTranslation()
protectedupdateCenterTranslation():void
Defined in: src/sdk/geo/GeoProjection.ts:269
Updates the translation vector to move the center of this projection to the origin.
Returns
void
Inherited from
AbstractGeoProjection.updateCenterTranslation
updatePreRotationTransforms()
protectedupdatePreRotationTransforms():void
Defined in: src/sdk/geo/GeoProjection.ts:254
Updates the pre-rotation transformation matrices.
Returns
void
Inherited from
AbstractGeoProjection.updatePreRotationTransforms