wradlib.georef.vector.ogr_create_layer

wradlib.georef.vector.ogr_create_layer(ds, name, srs=None, geom_type=None, fields=None)

Creates OGR.Layer objects in gdal.Dataset object.

Creates one OGR.Layer with given name in given gdal.Dataset object using given OGR.GeometryType and FieldDefinitions

Parameters:
  • ds (gdal.Dataset) – object
  • name (string) – OGRLayer name
  • srs (OSR.SpatialReference) – object
  • geom_type (OGR GeometryType) – (eg. ogr.wkbPolygon)
  • fields (list of 2 element tuples) – (strings, OGR.DataType) field name, field type
Returns:

out (OGR.Layer) – object