read_water_areas
read_water_areas(source, layer=None, *, crs=None)Read water areas from a GIS layer.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| source | (str, path - like or GeoDataFrame) | A GeoPackage or shapefile, or an object with geometry and crs attributes such as a GeoDataFrame. |
required |
| layer | str | Layer name; required when the file has more than one layer. | None |
| crs | pyproj.CRS or str or int | CRS of a layer that has none (see :func:read_domain). |
None |
Returns
| Name | Type | Description |
|---|---|---|
| Areas | The polygons. |
Raises
| Name | Type | Description |
|---|---|---|
| InputError | As :func:read_domain. |