hydromt.model.components.GeomsComponent.read#

GeomsComponent.read(filename: str | None = None, **kwargs) None[source]#

Read model geometries files at <root>/<filename>.

Parameters:
  • filename (str, optional) – Filename relative to model root. Should contain either a * wildcard character or a {name} placeholder to read multiple files into the data dictionary. All files matching the glob pattern defined by filename will be read. If a {name} placeholder is used, that name will be used as the key in the data dictionary. If no {name} placeholder is used, the filename without extension will be used as the key in the data dictionary. If None, the path that was provided at init will be used.

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