hydromt.writers.write_region#

hydromt.writers.write_region(region: GeoDataFrame, file_path: Path, *, to_wgs84=False, to_file_kwargs: dict[str, Any] | None = None)[source]#

Write the model region to a file.

Parameters:
  • file_path (Path) – The filename to write the region to.

  • to_wgs84 (bool, optional) – If True, the region is reprojected to WGS84 before writing. default is False.

  • to_file_kwargs (dict, optional) – Additional keyword arguments passed to the geopandas.GeoDataFrame.to_file function.