wradlib.georef.vector.get_vector_coordinates#
- wradlib.georef.vector.get_vector_coordinates(layer, **kwargs)[source]#
Function iterates over gdal ogr layer features and packs extracted vector coordinate points into nested ndarray
It transforms coordinates to a given destination osr spatial reference if dest_srs is given and a geotransform is necessary.
- Parameters:
layer (
osgeo.ogr.Layer
)- Keyword Arguments:
source_srs (
osgeo.osr.SpatialReference
) – Source Projectiondest_srs (
osgeo.osr.SpatialReference
) – Destination Projectionkey (
str
) – attribute key to extract from layer feature
- Returns:
shp (
numpy.ndarray
) – Dimension of subarrays Nx2 extracted shape coordinate pointsattrs (
list
) – List of attributes extracted from features