API / geotoolkit / map / coordinatesystems / Registry / Registry
coordinatesystems.Registry.Registry
This class provides registry of coordinate systems.
Constructors
Methods
Methods
▸ getClassName(): string
string
▸ getCoordinateSystem(system): AbstractSystem
Returns coordinate system created from the object, name, epsg code or WKT string
| Name | Type | Description |
|---|---|---|
system | string | number | AbstractSystem | Options | coordinate system, name, epsg code or WKT string |
▸ registerCoordinateSystem(system): Registry
Registers a new coordinate system
Throws
Error system is not an instance of AbstractSystem
| Name | Type | Description |
|---|---|---|
system | AbstractSystem | a new coordinate system |
this
▸ setDefaultSystem(System): Registry
Sets default system class, that will be used in getCoordinateSystem
Deprecated
since 2023 (4.0)
| Name | Type | Description |
|---|---|---|
System | typeof AbstractSystem | default system class |
this
▸ Static getClassName(): string
string
▸ Static getDefault(): Registry
Returns singleton instance of the coordinate system registry