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.

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.

Functions

build

Build an enriched proj.db from an OSDU coordinate reference catalogue.

load_config

Build an OsduBuildConfig from file, environment and overrides.

Classes

OsduBuildConfig

Resolved configuration for one proj.db build from an OSDU catalogue.

OsduCatalog

An indexed OSDU manifest.

Exceptions

OsduCatalogError

The OSDU catalogue file cannot be read or is not a manifest.

UnreadableDefinitionError

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.

catalog.Record

One reference data record, identified the way proj.db identifies things.

Re-exported

Importable from here for convenience; documented where they are defined.