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:
crs()– coordinate reference systems.operations()– conversions, transformations and concatenated operations, as the registry publishes them.datums()– datums and datum ensembles.ellipsoids(),prime_meridians(),units(),methods(),coordinate_systems()– the building blocks.grids()– the grid files operations read, and whether each is installed.authorities()anddatabase()– what answered, for provenance.
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¶
Every authority the active database holds objects of. |
|
List the coordinate systems the active database holds. |
|
List the coordinate reference systems the active database holds. |
|
The |
|
List the datums and datum ensembles the active database holds. |
|
List the ellipsoids the active database holds. |
|
List the grid files the operations in the active database read. |
|
The JSON Schema of |
|
List the coordinate operation methods the active database holds. |
|
List the coordinate operations the active database holds. |
|
List the prime meridians the active database holds. |
|
List the units of measure the active database holds. |
Classes¶
An authority whose objects the active database holds. |
|
One axis of a coordinate system. |
|
Anything a |
|
A coordinate system the active database holds. |
|
The kind of a coordinate system: PROJJSON's |
|
A coordinate reference system the active database holds. |
|
The kind of a coordinate reference system. |
|
The |
|
A datum or datum ensemble the active database holds. |
|
What a datum, or a datum ensemble, is a datum for. |
|
An ellipsoid or sphere the active database holds. |
|
A grid file an operation in the active database reads, or PROJ knows. |
|
What a grid file corrects. |
|
The entries one listing function found. |
|
A registered object that states where it is valid. |
|
A coordinate operation method the active database holds. |
|
What a method's operations are. |
|
Another object in the active database, by authority, code and name. |
|
A coordinate operation the active database holds. |
|
The kind of a coordinate operation. |
|
A prime meridian the active database holds. |
|
What every object an authority registers has: its id, name and status. |
|
A unit of measure the active database holds. |
|
What a unit measures, as pyproj categorises units. |
Constants and type aliases¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Exceptions¶
Root of every error a catalog listing raises. |
|
The list of grids on PROJ's content delivery network could not be read. |
|
A filter value is malformed, or names an object the database lacks. |
|
|
|
|
|
An |