geodetic_engine.geojson

Coordinate conversion of GeoJSON documents.

convert_geojson() converts every position of an RFC 7946 GeoJSON, OGC JSON-FG or OSDU AnyCrs GeoJSON document to another CRS, keeping its structure, id, properties and foreign members. The positions of each source CRS are transformed in one batch, with the guarantees points have.

Public entry points:

Functions

convert_geojson

Convert every position of a GeoJSON document to another CRS.

convert_geojson_request

Answer a convertGeoJson request as the OSDU service would.

Classes

GeoJsonResult

A converted GeoJSON document and how it was converted.

Exceptions

GeoJsonCrsError

The CRS of a document's positions is not stated, or is stated twice.

GeoJsonError

Base class for all GeoJSON document failures.

InvalidGeoJsonError

The document is not GeoJSON, or not OSDU AnyCrs GeoJSON.

UnsupportedGeoJsonError

The document is valid, but states something not converted yet.