Last updated

API / geotoolkit / map / coordinatesystems / AbstractSystem / AbstractSystem

Class: 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.
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.
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.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new AbstractSystem(options)

Protected new AbstractSystem(options)

Parameters

Name Type Description
optionsOptionsoptions to specify coordinate system.
Methods

getClassName

getClassName(): string

Returns

string


getDefaultModelLimits

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.

Returns

Rect


getEpsgCode

getEpsgCode(): number

Return epsg code of the coordinate system

Returns

number

epsg code


getName

getName(): string

Return a name of the coordinate system

Returns

string


getUnits

getUnits(): AbstractUnit

Return units of the coordinate system

Returns

AbstractUnit


inverseTransform

Abstract inverseTransform(x, y, dst?, clamp?): Point

Return transformed point to lat / lng from projection

Parameters

Name Type Description
xnumberx coordinate
ynumbery coordinate
Optional dstPointoptional destination point
Optional clampbooleanif set to true, coordinate values will be clamped

Returns

Point


isVerticalAxisUp

isVerticalAxisUp(): boolean

Return if vertical axis goes up

Returns

boolean


transform

Abstract transform(lon, lat, dst?, clamp?): Point

Transforms the specified coordinate to projection from lat / lng

Parameters

Name Type Description
lonnumberlong
latnumberlat
Optional dstPointoptional destination point
Optional clampbooleanif set to true, lat and lon will be clamped

Returns

Point


getClassName

Static getClassName(): string

Returns

string