CrsEntry¶
- class geodetic_engine.catalog.CrsEntry[source]¶
Bases:
LocatedEntryA 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 wayCoordinateReferenceSystemresolves 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
persistableReferenceone of those records publishes.
- resolve()[source]¶
Build the CRS, ready to transform with.
Resolved the way
geodetic_engine.geodesyresolves the code, so a bound CRS keeps the transformation the database stores with it.- Raises:
UnresolvableCRSError – If PROJ cannot build it.
- Return type:
- to_json_dict()[source]¶
The CRS’s full PROJJSON, exactly as PROJ exports it.
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)¶