Propose a drainage barrier, opening or excluded ground
propose_drainage_correctionPropose a drainage barrier, opening, or excluded ground so a terrain's drainage analysis matches where water really goes; the fix stays pending until a person accepts it on the map.
Instructions
Propose a drainage barrier, a drainage opening or excluded ground for a terrain. It is stored as a PROPOSAL and is NOT applied: a person accepts it on the map, and only then does the drainage analysis use it.
Use it when a delineation warning names a fix (a drainage_analysis_changed_ground warning's fix is
drainage_barrier or drainage_opening, with fix_sentence, where and the cut or fill geometry), or when you
can say exactly where water really goes and the terrain does not show it. Read the ground first with terrain_profile. Tell the user the proposal is waiting and
give them the link (ui_url): it opens a line on this terrain (line_to_open, named in the sentence) with the
proposal. Lines on the terrain change only after the person accepts it and they run again.
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>",
"terrain_id": "<terrain_id>",
"kind": "<kind>",
"reason": "<reason>"
},
"name": "propose_drainage_correction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | For excluded ground drawn by you: the ring as [[lon, lat], ...] (at least 3 points; it is closed for you). | |
| kind | Yes | drainage_barrier: a line water cannot cross (an embankment the terrain does not hold); drainage_opening: a line water passes through (a culvert or gap the terrain does not show), which can grow a catchment; excluded_ground: ground left out of the drainage analysis. | |
| line | No | For a barrier or an opening: the line as [[lon, lat], ...] (at least 2 points, WGS84). For an opening, from where the water is to where it goes; for a barrier, across the way the water should not go. | |
| reason | Yes | One or two sentences the person reads before accepting: what you saw (for example the warning's sentence) and why this fixes it. | |
| project_id | Yes | The project ID (Editor rights) | |
| terrain_id | Yes | The terrain the correction belongs to (a delineation's `line.terrain_id`) | |
| delineation_id | No | The line the person should look at; the link opens it when it is on this terrain. Omit it and Hydrata picks a line on the terrain (the newest confirmed, else the newest). | |
| from_import_check | No | For excluded ground: propose the extrapolated ground the terrain's import check marked (no `area`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||