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 trg_crs is given and a geotransform is necessary.
- Parameters:
layer (
osgeo.ogr.Layer)- Keyword Arguments:
src_crs (
osgeo.osr.SpatialReference) – Source Projectiontrg_crs (
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