CrsEntry

class geodetic_engine.catalog.CrsEntry[source]

Bases: LocatedEntry

A coordinate reference system the active database holds.

Listed by crs(). Everything here is read from the database without building the CRS; resolve() builds it, the way CoordinateReferenceSystem resolves the same code for a transformation.

kind

What kind of CRS it is.

projection_method

The projection method of a projected CRS, as PROJ names it, for example "Transverse Mercator"; None for any other kind.

datums

The datum or datum ensemble the CRS is on. A compound CRS has two, horizontal then vertical, and a projected CRS reports its base CRS’s. Empty for a CRS the database stores only as WKT text, as it does some ESRI CRSs, since no datum code is stored for it.

coordinate_system

The coordinate system, or None for a compound CRS and for a CRS stored only as WKT text.

axis_units

The unit of each axis in declared axis order: for a compound CRS, the horizontal axes then the vertical one.

bound

Whether the database stores the CRS as a bound CRS, carrying the transformation to its hub. Only a database built by this package does (see geodetic_engine.osdudb); PROJ’s own holds none.

osdu_ids

The ids of the OSDU catalogue records that publish this CRS, when the database was built from an OSDU catalogue; empty otherwise.

has_persistable_reference

Whether that build also recorded the persistableReference one of those records publishes.

property projjson_type: str

"ProjectedCRS", "GeographicCRS", "BoundCRS" and so on.

resolve()[source]

Build the CRS, ready to transform with.

Resolved the way geodetic_engine.geodesy resolves the code, so a bound CRS keeps the transformation the database stores with it.

Raises:

UnresolvableCRSError – If PROJ cannot build it.

Return type:

CoordinateReferenceSystem

to_json_dict()[source]

The CRS’s full PROJJSON, exactly as PROJ exports it.

Return type:

dict[str, Any]

Example

>>> from geodetic_engine import catalog
>>> catalog.crs(code="EPSG:25832").one().to_json_dict()["type"]
'ProjectedCRS'
__init__(*, auth_name, code, name, deprecated, aliases=(), replaced_by=(), areas_of_use=(), kind, projection_method=None, datums=(), coordinate_system=None, axis_units=(), bound=False, osdu_ids=(), has_persistable_reference=False)