wradlib.georef.vector.ogr_geocol_to_numpy¶
- wradlib.georef.vector.ogr_geocol_to_numpy(ogrobj)¶
Backconvert a gdal/ogr geometry Collection to a numpy vertex array.
This extracts only Polygon geometries!
Using JSON as a vehicle to efficiently deal with numpy arrays.
- Parameters:
ogrobj (
osgeo.ogr.Geometry
) – Collection object- Returns:
out (
numpy.ndarray
) – a nested ndarray of vertices of shape (num vertices, 2)