Read ground levels at points
sample_terrainRead the ground level of a terrain at points, to place a culvert, inflow or boundary on the ground.
Instructions
Read the ground level of a terrain at points, to place a culvert, inflow or boundary on the ground.
Returns samples: for each point you gave, in order, lon, lat and level
(the terrain's own height in metres, on the terrain's vertical datum: see
get_terrain vertical_datum). level is null where the terrain has no
data or the point lies outside it: say so, never treat it as zero. These
are the same values the browser's Profile panel reads. Read-only; changes nothing.
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_id": "<terrain_id>",
"points": "<points>"
},
"name": "sample_terrain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Up to 500 [longitude, latitude] pairs in WGS84 degrees (longitude FIRST), e.g. [[149.1, -35.28]] | |
| project_id | Yes | The project ID | |
| terrain_id | Yes | The terrain ID (get_terrain, or the `terrain` on get_scenario) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||