Merge project terrains into one
merge_terrainsMerge two or more of the project's terrains into one new terrain, in the priority order given.
Instructions
Merge two or more of the project's terrains into one new terrain, in the priority order given.
Use it when no single terrain covers the site well, e.g. a fine LiDAR survey over the channel and a
coarser terrain around it. The first terrain's heights are kept as they are; the ones below can be
shifted slightly so they meet it without a step at the seams (the same as the map's merge). Gaps in a
higher terrain are filled from the ones below. The reply gives the size estimate (grid cells) and
analysis_surface_id; the merge takes minutes, so follow it with get_terrain_merge until ready, then
use the merged terrain like any other. A refusal (too large for the resolution, a coarser terrain above a
finer one) comes back as outcome: refused with Hydrata's reply unchanged in hydrata_reply; nothing is kept.
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_ids": "<terrain_ids>",
"target_resolution_m": "<target_resolution_m>"
},
"name": "merge_terrains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Name of the merged terrain (default: 'Merged terrain') | |
| project_id | Yes | The project ID (the key needs Contributor rights; a launch-level key, since the merge can run on AWS Batch) | |
| terrain_ids | Yes | Two or more of the project's terrain IDs, highest priority FIRST (the one whose heights win where they overlap, usually the finest survey), then the ones that fill in around and under it | |
| merge_extent_wgs84 | No | Optional area to keep, [min_lon, min_lat, max_lon, max_lat] in WGS84 degrees; omit for the whole of the terrains' combined area | |
| target_resolution_m | Yes | Cell size of the merged terrain in metres, e.g. 2 | |
| acknowledge_coarser_above_finer | No | True only after the user agreed to put a coarser terrain above a finer one (a design surface over a survey); Hydrata refuses that order otherwise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||