API / geotoolkit / map / coordinatesystems / AbstractSystem / AbstractSystem
coordinatesystems.AbstractSystem.AbstractSystem
Any layer data has some coordinates, for example: From where to draw a picture for a Image layer, or feature coordinates for Vector layers. There is no single agreement which coordinate system to use and there are thousands of different coordinate systems. <br> Therefore, to draw different layers on one map, the data must be converted to one system. For this purpose, transformers and coordinate systems from the geotoolkit/map/coordinatesystems are used. <br> They contain information about how the coordinates are set in each case and thus can convert from one system to another. This class specifies the generalized coordinate system.
Constructors
- [new AbstractSystem(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem.md#new abstractsystem(options))
Methods
Constructors
• Protected new AbstractSystem(options)
| Name | Type | Description |
|---|---|---|
options | Options | options to specify coordinate system. |
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.
▸ 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
▸ Abstract 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 |
▸ isVerticalAxisUp(): boolean
Return if vertical axis goes up
boolean
▸ Abstract 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 and lon will be clamped |
▸ Static getClassName(): string
string