watershed
Generates a basin raster (GeoTIFF) from a DEM and pour points, assigning each basin a 1-based ID in point order. Non-draining cells remain nodata; points are aligned to the DEM CRS.
Instructions
Watershed of each pour point: DEM + points in, basin raster out (GeoTIFF).
Basins get 1-based IDs following the pour-point feature order; cells not draining to any point stay nodata. Points are aligned to the DEM CRS automatically (decision recorded). Requires the [whitebox] extra.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dem_path": "<dem_path>",
"pour_points_path": "<pour_points_path>",
"output_path": "<output_path>"
},
"name": "watershed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dem_path | Yes | ||
| output_path | Yes | ||
| pour_points_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||