wradlib.georef.vector.numpy_to_ogr

wradlib.georef.vector.numpy_to_ogr(vert, geom_name)

Convert a vertex array to gdal/ogr geometry.

Using JSON as a vehicle to efficiently deal with numpy arrays.

Parameters
  • vert (array_like) – a numpy array of vertices of shape (num vertices, 2)

  • geom_name (string) – Name of Geometry

Returns

out (ogr.Geometry) – object of type geom_name