Create a flood observation layer
create_observation_layerCreates a project-level flood observation layer and waits until its map layer is ready, so real flood evidence can be added and compared with historic runs.
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.
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 200) | |
| poll_interval_seconds | No | Seconds between layer polls |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||