API / geotoolkit / map / coordinatesystems / LatLon / LatLon
coordinatesystems.LatLon.LatLon
This class specifies the Geographic (lat/lon) coordinate system with datum WGS84 where longitude is x-axis and latitude is y-axis
↳
LatLon
Constructors
Methods
Constructors
• new LatLon(epsg?)
| Name | Type | Description |
|---|---|---|
Optional epsg | number | epsg epsg |
AbstractSystem.constructor
Methods
▸ getClassName(): string
string
▸ getDefaultModelLimits(): Rect
Gets the default minimal rectangular bounding region that will entirely contain this AbstractSystem (approximately). A CSR is an arbitrary complex closed region that touches the rectangular extent at least once on all four sides.
AbstractSystem.getDefaultModelLimits
▸ getEpsgCode(): number
Return epsg code of the coordinate system
number
epsg code
▸ getName(): string
Return a name of the coordinate system
string
▸ getUnits(): AbstractUnit
Return units of the coordinate system
▸ inverseTransform(x, y, dst?, clamp?): Point
Return transformed point to lat / lng from projection
| Name | Type | Description |
|---|---|---|
x | number | x coordinate |
y | number | y coordinate |
Optional dst | Point | optional destination point |
Optional clamp | boolean | if set to true, coordinate values will be clamped |
AbstractSystem.inverseTransform
▸ isVerticalAxisUp(): boolean
Return if vertical axis goes up
boolean
AbstractSystem.isVerticalAxisUp
▸ transform(lon, lat, dst?, clamp?): Point
Transforms the specified coordinate to projection from lat / lng
| Name | Type | Description |
|---|---|---|
lon | number | long |
lat | number | lat |
Optional dst | Point | optional destination point |
Optional clamp | boolean | if set to true, lat be limited by [-90, 90], lon: [-180, 180] |
▸ Static getClassName(): string
string