coordinate_systems¶
- geodetic_engine.catalog.coordinate_systems(*, authority=None, name=None, code=None, kind=None, dimension=None, unit=None, axes=None, limit=None, offset=0)[source]¶
List the coordinate systems the active database holds.
pyproj has no listing of coordinate systems, so they are read from
proj.db. Every filter given must hold.- Parameters:
authority (
str|Iterable[str] |None, default:None) – Only these authorities, for example"EPSG".name (
TextFilter|None, default:None) – Text the composed name contains, without case, or a pattern; for example"easting".code (
ReferenceFilter|None, default:None) – Only these codes, as forcrs().kind (
str|CoordinateSystemKind|Iterable[str|CoordinateSystemKind] |None, default:None) – Only these kinds, for example"Cartesian".dimension (
int|Iterable[int] |None, default:None) – Only this number of axes, or one of several.unit (
ReferenceFilter|None, default:None) – Only coordinate systems with an axis in one of these units, by code, entry or name.axes (
Iterable[str] |None, default:None) – Only these axis abbreviations, in this order and without case, for example("E", "N").limit (
int|None, default:None) – At most this many entries.offset (
int, default:0) – Skip this many entries first.
- Return type:
- Returns:
The coordinate systems, ordered by authority and code.
- Raises:
UnknownAuthorityError – If
authoritynames an authority the database does not hold.InvalidFilterError – If a filter is malformed, or
unitnames no unit.
Example
>>> from geodetic_engine import catalog >>> found = catalog.coordinate_systems( ... authority="EPSG", axes=("E", "N"), unit="metre" ... ) >>> "EPSG:4400" in [entry.authority_code for entry in found] True