API & MCP
Everything a person can do on RavingDesk Elevation Profile from a DEM, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ravingdeskelevationprofile.usefulweb.site/api/v1/calculate– run RavingDesk Elevation Profile from a DEMGET https://ravingdeskelevationprofile.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
RavingDesk Elevation Profile from a DEM
Samples your elevation model along a polyline with bilinear interpolation and measures the distances geodesically on the WGS84 ellipsoid (or in grid metres on local grids). Returns the profile as CSV and as a chart, the start, end, lowest and highest elevation, total climb and descent, the 3D length and the steepest and mean grade. Points can be cells, grid coordinates or coordinates in any notation (decimal degrees, DMS, UTM, MGRS, plus codes). It is the profile engine of RavingDesk’s Data & charts “Terrain” step.
| Field | Type | Default | Description |
|---|---|---|---|
file | file | — | Elevation model (DEM). ESRI ASCII grid (.asc), XYZ grid text, GeoTIFF (Int16, UInt16 or Float32, one band, uncompressed or Deflate, WGS84 or UTM) or a PNG heightmap. Up to 25 MB and 1,048,576 cells. |
text | textarea | — | Or paste an ESRI ASCII grid or XYZ points |
crs | select (auto, geographic, utm, local) | "auto" | Coordinate system of an ASCII or XYZ grid. GeoTIFFs carry their own coordinate system; PNG heightmaps are always local. |
utmZone | text | — | UTM zone. Only for “WGS84 UTM zone”: zone number and N or S. |
pngEncoding | select (terrarium, mapbox, grey) | "terrarium" | PNG heightmap encoding |
cellSize | number | — | Cell size of a PNG heightmap. PNG heightmaps and TIFFs without georeferencing have no cell size of their own. |
greyMin | number | — | Elevation of black (grey PNG) |
greyMax | number | — | Elevation of white (grey PNG) |
line (required) | textarea | "row 10, col 10\nrow 70, col 90" | Line points (one per line). At least two points: cells (“row 10, col 10”), “x, y” on local grids, or coordinates in any notation on georeferenced grids. |
stepM | number | — | Sample spacing. Empty: half the cell size (at most 5,000 samples). |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ravingdeskelevationprofile.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ravingdesk_elevation_profile - Local stdio connector:
node src/mcp-stdio.ts --tool=ravingdesk-elevation-profile
{
"mcpServers": {
"ravingdesk-elevation-profile": { "type": "http", "url": "https://ravingdeskelevationprofile.usefulweb.site/mcp" }
}
}