Fetch terrain from a Hydrata source
create_terrain_from_sourceFetches a DEM from a selected Hydrata terrain source for a project, reprojects and publishes it, seeds default input rows, and polls the import until ready or timed out.
Instructions
Have Hydrata fetch a terrain from one of its own sources, then wait for the import (like get_terrain).
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.
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) | |
| timeout_seconds | No | How long this call keeps polling the import before it returns `timed_out` (default 180, ceiling 200). 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 | |||