Make catchments from a delineation line, or change its settings
delineate_catchmentsCreate catchment boundaries from a terrain line, or adjust an existing unconfirmed delineation's name, start chainage, area, or side; returns a job ID, map URL, and estimate for tracking.
Instructions
Make catchments from a delineation line on the project's terrain, or change the settings of your own.
A NEW delineation starts a job and returns AT ONCE with delineation_id, ui_url (the map on this line's
Catchments pane) and the estimate (cells, resolution, where it runs, expected time range); follow it with
get_delineation. It never waits on a run. Nothing is confirmed: what you make is unreviewed until a person
confirms it in the browser. Only a person ticks a diversion or confirms; no tool does, and there is no tool
that deletes a delineation or moves its line.
The line has an upstream side for each section (side): Hydrata adopts the side most ground arrives from unless
you pass one, and ground on a section's downstream side is left out (one sentence says how much). Every reply with a
result names the side used per section; relay it.
With delineation_id: changing the name, start chainage, either area or the side regroups the stored result without
repeating the terrain step (no new job). A person's diversion ticks survive the change: they are re-applied and
marked check again until a person checks them; say so. A delineation a person made or confirmed is refused in
words. mode='full' starts High resolution: when the line's result is a fast screen (low resolution), Hydrata
makes a COPY of the line, ' (high res)', and runs there, so the two can be compared; the result then names
the copy's delineation_id (created_copy true): read THAT one with get_delineation.
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": {
"project_id": "<project_id>"
},
"name": "delineate_catchments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | A new delineation's line: 2 or more [longitude, latitude] pairs in WGS84 degrees (longitude FIRST), put on natural ground where the water arrives (the toe of a slope or in the channel), not on a crest. Read the ground along a candidate line with terrain_profile first. Not accepted with delineation_id (the line cannot be moved by a tool). | |
| mode | No | 'quick' (the default for a new delineation) is the FAST SCREEN: low resolution, coarsened to the web server's limit, seconds to a couple of minutes; a first look. 'full' is HIGH RESOLUTION: the terrain's own resolution, on AWS Batch, can take many hours (up to about 24), and the person can close the map. Do the fast screen first and offer High resolution with its estimate. With delineation_id, 'full' starts High resolution: over a fast screen it makes a COPY of the line, '<name> (high res)', and runs there (the fast screen stays, for comparison; read the copy's delineation_id with get_delineation); 'quick' runs the fast screen again. | |
| name | No | A new delineation's name (required); with delineation_id, the new name | |
| side | No | Upstream side looking from the line's start to its end: 'left', 'right', or 'automatic' (default: each section takes the side most ground arrives from). Pass a side only when the person said which side the water comes from. The reply names the side per section. | |
| sources | No | The documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document. | |
| project_id | Yes | The project ID (Contributor rights) | |
| terrain_id | No | A new delineation's terrain (default: the project's newest ready terrain) | |
| min_area_ha | No | Minimum catchment area in hectares: smaller catchments are grouped with a neighbour | |
| estimate_only | No | True runs nothing: it returns the estimate (cells, working resolution, where it runs, expected time range, and whether it can run on this site) for the terrain, or for the delineation_id's terrain. | |
| delineation_id | No | Omit to make a NEW delineation. Give the id of YOUR OWN unconfirmed delineation to change its name, start_chainage_m, min_area_ha or max_divert_area_ha (the result is regrouped, no new job) or, with mode='full', to start High resolution (on a copy of the line when its result is a fast screen). A delineation a person made or confirmed is refused. | |
| authored_method | No | One short phrase saying how you placed the line and chose the settings (e.g. 'toe of the slope read with terrain_profile at 5 m'). Shown to the person who reviews it. | |
| start_chainage_m | No | Chainage of the start of the line in metres (default 0); CH 5+081 is 5081 | |
| max_divert_area_ha | No | Maximum catchment diversion area in hectares: the largest catchment a suggested diversion may send away |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||