persistable_reference_from_catalog¶
- geodetic_engine.persistablereference.persistable_reference_from_catalog(value, *, entity=None, database=None)[source]¶
The persistableReference recorded for one object.
- Parameters:
value (
str|ResolvedCrs|CRS) – An OSDU record id, with or without its data partition or a version separator;"AUTH:CODE"; or a CRS, looked up by the id or code it was resolved from. A record’s baredata.ID, such as"Projected:EPSG::23031", is taken whenentitysays what kind of record it is.entity (
Entity|None, default:None) – Look only among CRSs or only among operations, for a code that names one of each.database (
Path|None, default:None) – The proj.db to read; the first on PROJ’s data path by default.
- Return type:
- Returns:
The reference, or None when none is recorded; see
missing_reference_reason().- Raises:
AmbiguousCatalogReferenceError – If
"AUTH:CODE"names an object more than one active catalogue record publishes, with different references. Name the record by its OSDU id instead.ValueError – If
valueis neither an OSDU id nor"AUTH:CODE", orentityis not"crs"or"operation".
Example
>>> persistable_reference_from_catalog( ... "opendes:reference-data--CoordinateReferenceSystem:" ... "BoundProjected:EPSG::23031_EPSG::1612" ... ).kind <Kind.EARLY_BOUND_CRS: 'EBC'>