Skip to content
Last updated

API / geotoolkit / map / coordinatesystems / Registry / Registry

Class: Registry

coordinatesystems.Registry.Registry

This class provides registry of coordinate systems.

Table of contents

Constructors
  • [new Registry()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.coordinatesystems.registry.registry.md#new registry())
Methods

Contents

Constructors

new Registry()

• new Registry()

Methods

getClassName

▸ getClassName(): string

Returns

string


getCoordinateSystem

▸ getCoordinateSystem(system): AbstractSystem

Returns coordinate system created from the object, name, epsg code or WKT string

Parameters

Name Type Description
systemstring | number | AbstractSystem | Optionscoordinate system, name, epsg code or WKT string

Returns

AbstractSystem


registerCoordinateSystem

▸ registerCoordinateSystem(system): Registry

Registers a new coordinate system

Throws

Error system is not an instance of AbstractSystem

Parameters

Name Type Description
systemAbstractSystema new coordinate system

Returns

Registry

this


setDefaultSystem

▸ setDefaultSystem(System): Registry

Sets default system class, that will be used in getCoordinateSystem

Deprecated

since 2023 (4.0)

Parameters

Name Type Description
Systemtypeof AbstractSystemdefault system class

Returns

Registry

this


getClassName

▸ Static getClassName(): string

Returns

string


getDefault

▸ Static getDefault(): Registry

Returns singleton instance of the coordinate system registry

Returns

Registry