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 (
pyproj:pyproj.CRS,cartopy.crs.CRS,osgeo.osr.SpatialReference,strorint) – Any of the given projection objects, or anything which can be consumed by pyproj.CRS.from_user_input Source Projectiontrg_crs (
pyproj:pyproj.CRS,cartopy.crs.CRS,osgeo.osr.SpatialReference,strorint) – Any of the given projection objects, or anything which can be consumed by pyproj.CRS.from_user_input 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