geodetic_engine.osdudb¶
Build a custom PROJ database from an OSDU coordinate reference catalogue.
The catalogue is a single OSDU manifest file holding
reference-data--CoordinateReferenceSystem and
reference-data--CoordinateTransformation records, so a build needs no
credentials and no network. download_official_catalog() fetches the one
OSDU publishes.
The database this produces is the same artefact the Georepository workflow in
geodetic_engine.projdb produces, written by the same writer against the
same frozen schema and checked by the same validator; only the source of the
definitions differs.
The public surface is deliberately small: a configuration object, a build function, a validation function, and the errors they raise.
A release wheel also ships the official catalogue already built into PROJ’s
database, and PROJ reads it unless another database was chosen. An installed
distribution can provide a database in its place, through the entry point
group geodetic_engine.proj_data. active_database() reports which
database PROJ reads and why, and use_bundled_database() switches the
bundled one on or off.
Functions¶
Report the |
|
Build an enriched proj.db from an OSDU coordinate reference catalogue. |
|
Download the official OSDU catalogue and verify it. |
|
Build an |
|
Switch the bundled database on or off. |
Classes¶
The |
|
The official OSDU catalogue, downloaded and verified. |
|
Resolved configuration for one proj.db build from an OSDU catalogue. |
|
An indexed OSDU manifest. |
Exceptions¶
The official OSDU catalogue could not be downloaded, or not verified. |
|
The OSDU catalogue file cannot be read or is not a manifest. |
|
An OSDU record carries no WKT, or WKT that PROJ will not parse. |
Supporting types¶
Not exported from the subpackage, but returned or accepted by something that is.
One reference data record, identified the way proj.db identifies things. |
Re-exported¶
Importable from here for convenience; documented where they are defined.