GeometryResults¶
- class geodetic_engine.geodesy.geometry.GeometryResults[source]¶
Bases:
objectTransformed geometries, their provenance, and their encodings.
Indexing or iterating gives a
GeometryResultper 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.
- ewkt(decimals=None, **options)[source]¶
EWKT with the target CRS’s SRID for each geometry.
- Return type:
- ewkb(decimals=None, **options)[source]¶
Extended WKB with the target CRS’s SRID for each geometry.
- Return type:
- ewkb_hex(decimals=None, **options)[source]¶
Extended WKB as hex with the target CRS’s SRID for each geometry.
- Return type:
- geojson(decimals=None, **options)[source]¶
A GeoJSON geometry object for each geometry.
- Return type:
- __init__(geometries, source_crs, target_crs, _provenance, axis_order='xy', _array=<factory>, _container=None)¶