geodetic_engine.catalog

Discover what the active PROJ database holds: CRSs, operations, datums and more.

One function per kind of object, each taking the same shared filters (authority, name, code, deprecated, limit, offset) and its own, and returning a lazy Listing of entries:

Everything is read from the proj.db PROJ resolves codes against, through pyproj wherever pyproj can answer. An entry’s to_json_dict() is the object’s official PROJJSON, as PROJ exports it; a listing’s to_json_dict() wraps short PROJJSON-shaped items, with what PROJJSON has no place for, such as deprecation, in an envelope described by listing_schema().

This module lists what the registry holds. To see which operations PROJ would apply between two CRSs, including chains it assembles itself, use geodetic_engine.geodesy.available_operations().

Example

>>> from geodetic_engine import catalog
>>> utm = catalog.crs(
...     authority="EPSG", kind="projected", datum="ETRS89",
...     area_of_interest=(10.0, 59.0, 11.0, 60.0), name="UTM",
... )
>>> [entry.authority_code for entry in utm]
['EPSG:3044', 'EPSG:25832']

Functions

authorities

Every authority the active database holds objects of.

coordinate_systems

List the coordinate systems the active database holds.

crs

List the coordinate reference systems the active database holds.

database

The proj.db that answers listings, with its versions and fingerprints.

datums

List the datums and datum ensembles the active database holds.

ellipsoids

List the ellipsoids the active database holds.

grids

List the grid files the operations in the active database read.

listing_schema

The JSON Schema of Listing.to_json_dict().

methods

List the coordinate operation methods the active database holds.

operations

List the coordinate operations the active database holds.

prime_meridians

List the prime meridians the active database holds.

units

List the units of measure the active database holds.

Classes

Authority

An authority whose objects the active database holds.

Axis

One axis of a coordinate system.

CatalogEntry

Anything a Listing holds.

CoordinateSystemEntry

A coordinate system the active database holds.

CoordinateSystemKind

The kind of a coordinate system: PROJJSON's subtype.

CrsEntry

A coordinate reference system the active database holds.

CrsKind

The kind of a coordinate reference system.

DatabaseInfo

The proj.db that answers listings, identified for provenance.

DatumEntry

A datum or datum ensemble the active database holds.

DatumKind

What a datum, or a datum ensemble, is a datum for.

EllipsoidEntry

An ellipsoid or sphere the active database holds.

GridEntry

A grid file an operation in the active database reads, or PROJ knows.

GridKind

What a grid file corrects.

Listing

The entries one listing function found.

LocatedEntry

A registered object that states where it is valid.

MethodEntry

A coordinate operation method the active database holds.

MethodKind

What a method's operations are.

ObjectRef

Another object in the active database, by authority, code and name.

OperationEntry

A coordinate operation the active database holds.

OperationKind

The kind of a coordinate operation.

PrimeMeridianEntry

A prime meridian the active database holds.

RegistryEntry

What every object an authority registers has: its id, name and status.

UnitEntry

A unit of measure the active database holds.

UnitKind

What a unit measures, as pyproj categorises units.

Constants and type aliases

AreaFilter

LISTING_SCHEMA_URL

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

RangeFilter

ReferenceFilter

TextFilter

Exceptions

CatalogError

Root of every error a catalog listing raises.

GridIndexUnavailableError

The list of grids on PROJ's content delivery network could not be read.

InvalidFilterError

A filter value is malformed, or names an object the database lacks.

NotFoundError

one() found no entry.

NotUniqueError

one() found more than one entry.

UnknownAuthorityError

An authority filter names no authority the active database holds.