terrainprofile
v0.1.0Elevation, slope, terrain maps and 3D surfaces for any site, from global and regional DEM data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_datasets
List all available elevation datasets on the Geospatial System server.
LP_Get_Elevation
Get the elevation in metres at a specific lat/lon coordinate. Available on all tiers including Free.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier (see list_datasets). |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
LP_Get_Elevation_Batch
Get elevation for up to 100 points in one call. Pass a list of objects: [{"lat":…,"lon":…,"dataset_id":…}, …] Available on all tiers including Free.
| Parameter | Type | Description |
|---|---|---|
queries * | array | List of point dicts with lat, lon, dataset_id. |
LP_Get_Elevation_Stats
Get elevation statistics (Min, Average, Max) for 3×3, 5×5 and 7×7 pixel windows centred on the coordinates. Requires Pro or Enterprise key.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
LP_Get_Slope_Stats
Get terrain slope statistics (Min, Average, Max) in degrees for 3×3, 5×5 and 7×7 pixel windows. WGS-84 corrected. Requires Pro key.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
LP_Get_Elevation_Chart
Generate a range-box chart showing elevation Min/Avg/Max across three neighbourhood window sizes. Returns a URL to the chart image. Requires Pro key. Supports PNG / SVG / PDF.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
fmt | string | Output format — 'png' (default), 'svg', or 'pdf'. |
LP_Get_Slope_Chart
Generate a range-box chart showing terrain slope Min/Avg/Max across three neighbourhood window sizes. Returns a URL to the chart image. Requires Pro key. Supports PNG / SVG / PDF.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
fmt | string | Output format — 'png', 'svg', or 'pdf'. |
LP_Get_Terrain_Map
Generate a composite terrain map: Google Hybrid satellite (EPSG:3857) + smoothed contours with labels + flow-direction arrows + location pin. All layers are reprojected to EPSG:3857 — no overlay mismatch. Requires Pro key. Supports PNG.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
fmt | string | Output format — 'png'. |
n_arrows | integer | Flow arrow grid density (default 11). |
offset | integer | Half-window pixels (default 20 → 41×41 px area). |
LP_Get_Terrain_3D
Generate a 3-D perspective terrain surface map (Plotly go.Surface) coloured by elevation with a red spike pin marking the query location. Requires Pro key. Supports PNG / HTML.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset identifier. |
lat * | number | Latitude in decimal degrees (WGS-84). |
lon * | number | Longitude in decimal degrees (WGS-84). |
azim_angle | number | Camera azimuth angle in degrees (default 135). |
elev_angle | number | Camera elevation angle in degrees (default 45). |
fmt | string | Output format — 'png', or 'html'. |
offset | integer | Half-window pixels (default 20). |