wradlib.georef.vector.numpy_to_ogr

Contents

wradlib.georef.vector.numpy_to_ogr#

wradlib.georef.vector.numpy_to_ogr(vert, geom_name)[source]#

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 (str) – Name of Geometry

Returns:

out (osgeo.ogr.Geometry) – object of type geom_name