hydromt.gis.Dataset.vector.clip_geom#
- gis.Dataset.vector.clip_geom(geom, predicate='intersects') DataArray | Dataset #
Select all geometries that intersect with the input geometry.
- Parameters:
geom (
geopandas.GeoDataFrame/Series,
) – A geometry defining the area of interest.predicate (
{None, 'intersects', 'within', 'contains', 'overlaps', 'crosses', 'touches'}
, optional) – If predicate is provided, the input geometry is tested using the predicate function against each item in the index whose extent intersects the envelope of the input geometry: predicate(input_geometry, tree_geometry).
- Returns:
da – Clipped DataArray
- Return type: