CoordinateSystemEntry

class geodetic_engine.catalog.CoordinateSystemEntry[source]

Bases: RegistryEntry

A coordinate system the active database holds.

Listed by coordinate_systems().

proj.db keeps no name for a coordinate system, so name is composed, in the pattern EPSG names them, from the type, axes and units; nor does it record deprecation, so deprecated is always False.

kind

The kind, PROJJSON’s subtype.

dimension

The number of axes.

axes

The axes, in declared order.

__init__(*, auth_name, code, name, deprecated, aliases=(), replaced_by=(), kind, dimension, axes)
property projjson_type: str

Always "CoordinateSystem".

property axis_abbreviations: tuple[str, ...]

The axis abbreviations in declared order, for example ("E", "N").

to_json_dict()[source]

The coordinate system as PROJJSON.

PROJ exports a coordinate system only as part of a CRS. So this is PROJ’s export of it from a CRS that uses it, and for one no CRS uses it is assembled from the database in the same form.

Return type:

dict[str, Any]

Example

>>> from geodetic_engine import catalog
>>> cs = catalog.coordinate_systems(code="EPSG:4400").one()
>>> [axis["abbreviation"] for axis in cs.to_json_dict()["axis"]]
['E', 'N']