terrainprofile

v0.1.0
io.github.CloudCorpRecords/terrainprofile Checked 2 days ago Published 1 month ago

Elevation, 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.

ParameterTypeDescription
dataset_id *stringDataset identifier (see list_datasets).
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude 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.

ParameterTypeDescription
queries *arrayList 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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude 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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude 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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude in decimal degrees (WGS-84).
fmtstringOutput 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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude in decimal degrees (WGS-84).
fmtstringOutput 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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude in decimal degrees (WGS-84).
fmtstringOutput format — 'png'.
n_arrowsintegerFlow arrow grid density (default 11).
offsetintegerHalf-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.

ParameterTypeDescription
dataset_id *stringDataset identifier.
lat *numberLatitude in decimal degrees (WGS-84).
lon *numberLongitude in decimal degrees (WGS-84).
azim_anglenumberCamera azimuth angle in degrees (default 135).
elev_anglenumberCamera elevation angle in degrees (default 45).
fmtstringOutput format — 'png', or 'html'.
offsetintegerHalf-window pixels (default 20).