CoordinateSystemEntry¶
- class geodetic_engine.catalog.CoordinateSystemEntry[source]¶
Bases:
RegistryEntryA coordinate system the active database holds.
Listed by
coordinate_systems().proj.db keeps no name for a coordinate system, so
nameis composed, in the pattern EPSG names them, from the type, axes and units; nor does it record deprecation, sodeprecatedis 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 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.
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']