safe.gis.gdal_ogr_tools module

GDAL/OGR utility tools

safe.gis.gdal_ogr_tools.polygonize_thresholds(raster_file_name, threshold_min=0.0, threshold_max=inf)[source]

Function to polygonize raster. Areas (pixels) with threshold_min < pixel_values < threshold_max will be converted to polygons.

Parameters:
  • raster_file_name (string) – Raster file name
  • threshold_min (float) – Value that splits raster to flooded or not flooded.
  • threshold_max (float) – Value that splits raster to flooded or not flooded.
Returns:

Polygon shape file name

Return type:

string