hydromt.Model.write_geoms#

Model.write_geoms(fn: str = 'geoms/{name}.geojson', to_wgs84: bool = False, **kwargs) None#

Write model geometries to a vector file (by default GeoJSON) at <root>/<fn>.

key-word arguments are passed to geopandas.GeoDataFrame.to_file()

Parameters:
  • fn (str, optional) – filename relative to model root and should contain a {name} placeholder, by default ‘geoms/{name}.geojson’

  • to_wgs84 (bool, optional) – Option to enforce writing GeoJSONs with WGS84(EPSG:4326) coordinates.

  • **kwargs – Additional keyword arguments that are passed to the geopandas.to_file function.