Create a flood observation layer
create_observation_layerCreates a project-level flood observation layer for real flood evidence (marks, levels, gauge records, dry points) and waits until its map layer is ready before observations can be added.
Instructions
Create a flood observation layer in a project and wait for its map layer.
A flood observation layer holds real flood evidence (Flood marks, Timed
levels, Gauge records, Dry points) that every historic run is compared
with (Compare with observations). It is project-level: it is never a scenario input.
POSTs /projects//flood-observations/, then polls the layer until its
GeoServer layer exists (ready), usually a few seconds; until then
add_observations refuses. On timed_out, call list_observations later.
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>",
"title": "<title>"
},
"name": "create_observation_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Layer title, e.g. 'August 1998 survey' | |
| project_id | Yes | The project ID | |
| datum_offset_m | No | Metres ADDED to every stage on the layer to bring it onto the terrain datum. Required for vertical_datum=local; null means 0 otherwise | |
| vertical_datum | No | The datum the layer's stages are on: terrain (default, 'Same as terrain'), local ('Local datum (constant offset)', needs datum_offset_m), or the vertical datum the levels were surveyed on: an EPSG vertical CRS (e.g. 'EPSG:5703') or the datum's own name (at most 32 characters). Ask the user; never assume one from the country | terrain |
| timeout_seconds | No | How long to wait for the map layer (clamped to 110) | |
| poll_interval_seconds | No | Seconds between layer polls |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||