wradlib.georef.vector.get_vector_coordinates

wradlib.georef.vector.get_vector_coordinates(layer, **kwargs)

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 neccessary.

Parameters

layer (ogr.Layer) –

Keyword Arguments
  • source_srs (osr.SpatialReference) – Source Projection

  • dest_srs (osr.SpatialReference) – Destination Projection

  • key (string) – attribute key to extract from layer feature

Returns

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

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