crs¶
- geodetic_engine.catalog.crs(*, authority=None, name=None, code=None, kind=None, datum=None, unit=None, coordinate_system_kind=None, projection_method=None, area_of_interest=None, contains=False, area_name=None, bound=None, deprecated=False, limit=None, offset=0)[source]¶
List the coordinate reference systems the active database holds.
Every filter given must hold. Rows, names, kinds, deprecation and areas come from
pyproj.database.query_crs_info(), and anarea_of_interestis tested against those areas exactly as PROJ tests it; the datum, coordinate system and units of each CRS are read fromproj.db.- Parameters:
authority (
str|Iterable[str] |None, default:None) – Only these authorities, for example"EPSG"; seeauthorities().name (
TextFilter|None, default:None) – Text the name or an alias contains, without case, or are.Patternto search them with.code (
ReferenceFilter|None, default:None) – Only these codes:"EPSG:25832", a bare code such as25832in any authority, an entry or anObjectRef, or several.kind (
str|CrsKind|Iterable[str|CrsKind] |None, default:None) – Only these kinds, byCrsKindor its value, for example"projected".datum (
ReferenceFilter|None, default:None) – Only CRSs on these datums or datum ensembles, by code, entry or name, for example"EPSG:6258"or"ETRS89". Matches the datum exactly: ETRS89 does not match a CRS on one of its member frames, such as ETRF2000.unit (
ReferenceFilter|None, default:None) – Only CRSs with an axis in one of these units, by code, entry or name, for example"US survey foot".coordinate_system_kind (
str|CoordinateSystemKind|Iterable[str|CoordinateSystemKind] |None, default:None) – Only CRSs whose coordinate system is of these kinds, for example"Cartesian".projection_method (
TextFilter|None, default:None) – Text the projection method’s name contains, or a pattern, for example"Transverse Mercator".area_of_interest (
AreaFilter|None, default:None) –(west, south, east, north)in degrees, or a pyproj orAreaOfUsebox. West greater than east crosses the antimeridian.contains (
bool, default:False) – Witharea_of_interest, only CRSs whose area of use contains it entirely, rather than intersects it.area_name (
TextFilter|None, default:None) – Text the area of use’s description contains, or a pattern, for example"Norway".bound (
bool|None, default:None) – True for only bound CRSs, False for none.deprecated (
bool|None, default:False) – False (default) leaves deprecated CRSs out, True lists only them, None lists both.limit (
int|None, default:None) – At most this many entries.offset (
int, default:0) – Skip this many entries first.
- Return type:
- Returns:
The CRSs, ordered by authority and code.
- Raises:
UnknownAuthorityError – If
authoritynames an authority the database does not hold.InvalidFilterError – If a filter is malformed, or
datumorunitnames nothing of that kind.
Example
>>> from geodetic_engine import catalog >>> found = catalog.crs( ... authority="EPSG", kind="projected", datum="ETRS89", ... name="UTM zone 32N", area_of_interest=(10.0, 59.0, 11.0, 60.0), ... ) >>> [entry.name for entry in found] ['ETRS89 / UTM zone 32N (N-E)', 'ETRS89 / UTM zone 32N']