hydromt_fiat.components.ExposureGeomsComponent#
- class hydromt_fiat.components.ExposureGeomsComponent(model: Model, *, filename: str = 'exposure/{name}.fgb', region_component: str | None = None, region_filename: str = 'region.geojson')[source]#
 Custom exposure geometries component.
- Parameters:
 model (Model) – HydroMT model instance (FIATModel)
filename (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.
region_filename (str, optional) – The path to use for writing the region data to a file. By default “region.geojson”.
Attributes
boundsReturn the total bounds of the model region.
crsProvide access to the CRS of the model region.
Model geometries.
data_catalogReturn the data catalog of the model this component is associated with.
modelReturn the model object this component is associated with.
regionProvide access to the underlying GeoDataFrame data of the model region.
rootReturn the root of the model this component is associated with.
Methods
clip(geom[, inplace])Clip the exposure vector data.
read([filename])Read exposure geometry files.
set(geom, name)Add data to the geom component.
setup(exposure_fname, exposure_type_column, *)Set up the exposure from a data source.
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.