hydromt_fiat.components.ExposureGeomsComponent#
- class hydromt_fiat.components.ExposureGeomsComponent(model: Model, *, filename: Path | str = 'exposure/{name}.fgb', region_component: str | None = None)[source]#
Exposure geometries component.
- Parameters:
model (Model) – HydroMT model instance (FIATModel).
filename (Path | str, optional) – The path to use for reading and writing of component data by default. By default “exposure/{name}.fgb”.
region_component (str, optional) – The name of the region component to use as reference for this component’s region. If None, the region will be set to the union of all geometries in the data dictionary. By default None.
Attributes
boundsReturn the total bounds of the model region.
crsProvide access to the CRS of the model region.
Geometries.
data_catalogReturn the data catalog of the model this component is associated with.
modelReturn the model object this component is associated with.
name_in_modelFind the name of the component in the parent model components.
regionProvide access to the underlying GeoDataFrame data of the model region.
rootReturn the root of the model this component is associated with.
Methods
clear()Clear the geometry data.
clip(geom[, inplace])Clip the vector data.
close()Clean up all open datasets.
finish_write()Finish the write functionality after cleanup was called for all components in the model.
read([filename])Read exposure geometry files.
reproject(crs[, inplace])Reproject the vector data.
set(data, name)Set data in the geoms component.
setup(exposure_fname, exposure_type_column, *)Set up the exposure from a data source.
setup_link_vulnerability(exposure_name[, ...])Link the exposure geometry data to the vulnerability data.
setup_max_damage(exposure_name, ...[, ...])Set up the maximum potential damage per object in an existing dataset.
test_equal(other)Test if two components are equal.
update_column(exposure_name, columns, values)Update an existing dataset by adding columns with values.
write([filename])Write exposure geometries to a vector file.
write_region([filename, to_wgs84, ...])Write the model region to file.