GeometryResults

class geodetic_engine.geodesy.geometry.GeometryResults[source]

Bases: object

Transformed geometries, their provenance, and their encodings.

Indexing or iterating gives a GeometryResult per geometry. The encodings are returned in the container the geometries came in: a list for a sequence, a numpy array for an array, and a pandas Series with the same index for a Series or GeoSeries.

geometries

The geometries in the target CRS, xy, in the input’s container. A GeoSeries comes back as one, with the target CRS set.

source_crs

The CRS they were transformed from.

target_crs

The CRS they are in.

transformation

The provenance, shared by every geometry, written out each time it is read.

axis_order

The axis order the encodings are written in.

wkt(decimals=None, **options)[source]

WKT for each geometry.

Return type:

Any

wkb(decimals=None, **options)[source]

ISO WKB for each geometry.

Return type:

Any

wkb_hex(decimals=None, **options)[source]

ISO WKB as hex for each geometry.

Return type:

Any

ewkt(decimals=None, **options)[source]

EWKT with the target CRS’s SRID for each geometry.

Return type:

Any

ewkb(decimals=None, **options)[source]

Extended WKB with the target CRS’s SRID for each geometry.

Return type:

Any

ewkb_hex(decimals=None, **options)[source]

Extended WKB as hex with the target CRS’s SRID for each geometry.

Return type:

Any

geojson(decimals=None, **options)[source]

A GeoJSON geometry object for each geometry.

Return type:

Any

esrijson(decimals=None, **options)[source]

An Esri JSON geometry for each geometry.

Return type:

Any

__init__(geometries, source_crs, target_crs, _provenance, axis_order='xy', _array=<factory>, _container=None)