Read the ground along a line
terrain_profileRead the ground along a line (a cross-section) to find where a channel runs and snap a structure to it.
Instructions
Read the ground along a line (a cross-section) to find where a channel runs and snap a structure to it.
Returns profile: samples ordered along the line, each with distance_m
from the start, lon, lat and level (the terrain's height in metres,
on its vertical datum: see get_terrain). lowest is the sample with the
minimum level: across a channel it is the invert candidate, and its
lon/lat is where the channel is. level is null where there is no data
or the line leaves the terrain: those samples are never lowest. The same
values the browser's Profile panel draws for the same line. Read-only.
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>",
"line": "<line>"
},
"name": "terrain_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The line to read along: 2 to 150 [longitude, latitude] pairs in WGS84 degrees (longitude FIRST); simplify a longer line, it rides in the request URL | |
| step_m | No | Metres between samples (default 5). One call returns at most 500 samples: use a larger step for a long line. | |
| 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 | |||