wradlib.georef.vector.ogr_add_geometry

wradlib.georef.vector.ogr_add_geometry(layer, geom, attrs)

Copies single OGR.Geometry object to an OGR.Layer object.

Given OGR.Geometry is copied to new OGR.Feature and written to given OGR.Layer by given index. Attributes are attached.

Parameters
  • layer (OGR.Layer) – object

  • geom (OGR.Geometry) – object

  • attrs (list) – attributes referring to layer fields