geometry.CatchmentGeometry

geometry.CatchmentGeometry(self, points)

A utility class for working with catchment geometries.

Parameters

Name Type Description Default
points list[tuple[float, float]] List of points (x, y) defining the catchment boundary. The first and last points should be the same. required

Methods

Name Description
from_res1d_catchment Create a CatchmentGeometry from an IRes1DCatchment object.
to_shapely Convert to a shapely geometry.

from_res1d_catchment

geometry.CatchmentGeometry.from_res1d_catchment(res1d_catchment)

Create a CatchmentGeometry from an IRes1DCatchment object.

to_shapely

geometry.CatchmentGeometry.to_shapely()

Convert to a shapely geometry.