Adopt a confirmed line's catchments as a layer
adopt_catchmentsAdopt a confirmed line's catchments as a GeoNode layer to style and share, replacing an existing adopted layer only after user approval and marking it unreviewed.
Instructions
Adopt a confirmed line's catchments as a GeoNode layer of the project: a snapshot to style and share.
Refused unless a person has confirmed the line (ask them to, in the browser). When the line already has an adopted
layer, the call is refused with that layer and its 'the line has changed since' mark: ask the user, and call again
with replace=true only if they say yes. The layer you adopt is marked as made by an agent and unreviewed. The
same mark is on get_delineation's adopted_layer. Give the user the link (ui_url): the layer is on the map in
Adopted catchments.
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>",
"delineation_id": "<delineation_id>"
},
"name": "adopt_catchments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | True only after the user said yes to replacing the contents of the line's adopted layer with the catchments as they are now (maps that show the layer then show the new catchments). | |
| 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 (Editor rights) | |
| delineation_id | Yes | `delineation_id` of a line a person has confirmed | |
| authored_method | No | One short phrase saying why you are adopting these catchments. Shown to the person who reviews it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||