wradlib.io.gdal.open_vector

wradlib.io.gdal.open_vector(filename, driver=None, layer=0)

Open vector file, return gdal.Dataset and OGR.Layer

Warning

dataset and layer have to live in the same context, if dataset is deleted all layer references will get lost

Parameters:
  • filename (string) – vector file name
  • driver (string) – gdal driver string
  • layer (int or string) –
Returns:

  • dataset (gdal.Dataset) – dataset
  • layer (ogr.Layer) – layer