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