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
Returns

  • shp (numpy.ndarray) – Dimension of subarrays Nx2 extracted shape coordinate points

  • attrs (list) – List of attributes extracted from features