easy_vic_build.tools.geo_func.format_conversion

Format-conversion helpers for geospatial datasets.

This module currently provides raster-to-vector conversion utilities.

Functions

raster_to_shp(raster_path, shp_path)

Convert a raster file to a shapefile.

easy_vic_build.tools.geo_func.format_conversion.raster_to_shp(raster_path, shp_path)[source]

Convert a raster file to a shapefile.

This function reads a raster file, extracts its geometries (features), and saves them as a shapefile.

Parameters:
  • raster_path (str) – Path to the input raster file.

  • shp_path (str) – Path where the output shapefile will be saved.

Returns:

Output shapefile is written to shp_path.

Return type:

None