geodetic_engine.projdb

Build a custom PROJ database from a Georepository instance.

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 a Georepository instance.

load_config

Build a ProjDbBuildConfig from file, environment and overrides.

validate

Check that a built database is sound and that PROJ can read every object.

Classes

AuthorityPreference

How custom authorities enter PROJ's operation selection.

BuildReport

Provenance for one build, so a result can be traced after the fact.

ProjDbBuildConfig

Resolved configuration for one custom proj.db build.

Exceptions

BallparkOnlyOperationError

A non-deprecated object only resolves through a ballpark transformation.

ConfigurationError

The build configuration is missing or inconsistent.

ForeignAuthorityCollision

A row would overwrite an object belonging to another authority.

MissingGridError

A grid-based transformation references a grid file that is not available.

MissingReferencedObjectError

A custom object references an object that is not in the database.

ProjDbBuildError

Base class for all custom proj.db build failures.

SchemaDriftError

A PROJ or package-owned database schema conflicts with this build.

UnsupportedMethodError

A coordinate operation method is not evaluable by this PROJ build.

Supporting types

Not exported from the subpackage, but returned or accepted by something that is.

errors.OutputWouldBeDiscarded

A fresh build would drop authorities an existing output database holds.