GeoJsonResult

class geodetic_engine.geojson.GeoJsonResult[source]

Bases: object

A converted GeoJSON document and how it was converted.

document

The converted document, a new dict: the input is never modified. With on_error="nan", a failed position holds NaN, which JSON cannot represent; json.dumps() writes it as NaN, as the OSDU service does.

success_count

Positions converted and written.

total_count

Positions there were to convert.

transformations

The provenance of each transformation applied, one per source CRS and number of values per position, as metadata_json_dict() gives it.

operations_applied

A line of text per transformation and unit conversion, as the OSDU service reports them.

failures

Each position that failed, by JSON path, with its error.

__init__(document, success_count, total_count, transformations, operations_applied, failures=())