Fetch terrain from a Hydrata source
create_terrain_from_sourceFetches terrain from a Hydrata source by key, imports and reprojects the DEM, seeds project input rows, and polls until the import completes or times out.
Instructions
Have Hydrata fetch a terrain from one of its own sources, then wait for the import (like get_terrain).
Never fetch terrain from outside Hydrata where a Hydrata source covers the site; if none does, the person uploads their own DEM in the project map.
Use a key from list_terrain_sources. Hydrata fetches, reprojects and publishes the
DEM and seeds the project's default input rows; the DEM's datum is stamped by the source.
The result is get_terrain's envelope (outcome ready | error | timed_out, terrain,
polls) plus terrain_source: the source's key, name, resolution_m, licence,
credit and vertical_datum. timed_out is normal for a large area: keep calling
get_terrain(project_id, terrain_id). A refusal (the box is over the source's size cap,
the source has no data there, an unknown source) comes back as outcome: refused
with the reason in say_to_user and nothing is created.
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>",
"bbox": "<bbox>",
"source": "<source>",
"levels_datum": "<levels_datum>"
},
"name": "create_terrain_from_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | The site as [min_lon, min_lat, max_lon, max_lat] in WGS84 degrees | |
| title | No | Terrain title (default: the source name and box) | |
| source | Yes | A source `key` from list_terrain_sources, e.g. `ga_lidar_5m` or `copernicus_glo30` | |
| project_id | Yes | The project ID (the key needs Contributor rights; a launch-level key since the import can start AWS Batch) | |
| levels_datum | Yes | REQUIRED. The datum the PERSON'S levels (study, survey, tailwater) are on: `AHD`, `NAVD88`, `Ordnance Datum Newlyn`, or an EPSG vertical code such as `EPSG:5711`. Ask the user; never guess. Recorded on the project, NOT as the terrain's own datum. | |
| timeout_seconds | No | How long this call keeps polling the import before it returns `timed_out` (default 110, ceiling 110). 0 = start it and return at once; then call get_terrain. | |
| poll_interval_seconds | No | Seconds between polls (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||