Skip to content

Terrain analysis

Terrain analysis runs on elevation layers. The Rust program loka-analysis computes most results from the DTED cells; slope, contours, ridges and roughness use the GDAL tools.

  1. Open Elevation and press Import.
  2. Choose the Workspace and, if you like, a Name.
  3. Add Files (a ZIP, .dt0–.dt2 files or a one-band elevation GeoTIFF), or a Folder such as dted/e106/s07.dt1. Other files in the folder are skipped.
  4. Choose 3D heights: Ellipsoid (WGS84) or Sea level (EGM96).
  5. Press Import. The layer shows building, then ready.
Grey shaded relief of Gunung Salak and Bogor
An elevation layer drawn as hillshade: Gunung Salak and the valleys to Bogor.

The layer’s Preview tab shows colour and hillshade, Cells lists the DTED cells, and Access has the terrain addresses (see Services and clients).

Open Analysis → Workbench and pick a ready elevation layer. Pick a tool, draw or click its input on the map, set the fields and run it. Analysis → Guides explains each tool.

The analysis workbench with the Viewshed tool open beside a 2D elevation map of Bogor
The workbench with the Viewshed tool: how-to on the left, the map on the right.

The workbench map is loka.gl. With a WebGPU browser you can switch it to 3D; line of sight, flight, air route, routes, profiles, camera footprints and domes then have a 3D form, and airspace coverage shows its altitude slices.

3D view of Gunung Salak with an observer on its flank and two lines of sight, one up the volcano and one across the plain
Line of sight in 3D: one line blocked by the volcano, one clear across the plain.

Save as a layer keeps a result as a new layer in the workspace. Without it, the result is only drawn (and kept for an hour); you can still save it afterwards. Saving needs write access.

Tool What it gives
Profile Heights along a line
Heights at points The height at clicked points (up to 254)
Slope Steepness, in degrees or percent, with your own classes; saved as a layer
Aspect The direction slopes face; saved as a layer
Ridges and valleys The topographic position index; saved as a layer
Roughness The largest height step to the neighbouring cells; saved as a layer
Height bands Height classes; saved as a layer
Contours Lines of equal height, every 1 to 5,000 m (default 50); saved as a layer
Sun shadow Terrain shadow for a sun azimuth and elevation; saved as a layer
Slope around Bogor from grey to red
Slope in degrees: flat ground grey, steep valley sides and volcano flanks yellow to red.
Tool What it gives
Line of sight Whether an observer sees a target, and what blocks it. Heights default to 2 m
Line of sight to many targets Which of up to 500 targets an observer sees
Viewshed The ground seen within a radius (100 m to 100 km), optionally in a sector and with a dead zone. Drawn live as you move the observer; saved as a layer
Visibility index How many of up to 254 observers see each place; saved as a layer
Coverage (radar, radio) The lowest height above ground that the antennas see; saved as a layer
Airspace coverage (3D) The lowest altitude seen by at least N sensors, in altitude steps; saved as a layer
Radio coverage The received signal level (ITM / Longley-Rice) for frequency, EIRP, climate and polarization; saved as a layer
Camera footprint The ground a UAV, mast or CCTV camera sees, from height, heading, tilt and field of view
Weapon or sensor dome A 3D hemisphere or sector; can be saved

Each observer, target, antenna or transmitter can have its own height and radius (Per point under the point list).

Shaded terrain near Bogor with the ground seen from an observation point in green and hidden ground in red, inside range rings
Viewshed: ground seen from a post 10 m high, within 10 km.
Map around Bogor coloured by received radio signal level from two VHF relays, green near the relays, yellow and red behind hills
Radio coverage of two VHF relays on 30 m masts.

These use land cover and roads as well as the terrain. Choose the mover: on foot, wheeled or tracked.

Tool What it gives
Terrain route The fastest way from start to end
Reach in time Where the mover can get in 1 to 1,440 minutes; saved as a layer
Accessibility (go / no-go) GO, SLOW GO and NO GO areas; saved as a layer
Map around Bogor coloured by travel time for a wheeled vehicle, green near the start and along roads, red at 20 minutes
Reach in time: 20 minutes for a wheeled vehicle.
Map near Bogor in green almost everywhere, with amber and red patches on steep valley sides and hills, roads on top
Accessibility for tracked vehicles: go, slow go and no go.
Tool What it gives
Flight clearance The height above terrain along a route at an altitude
Air route The shortest path at an altitude that stays clear of terrain
Corridor A lane along a route, optionally a 3D volume; can be saved
Terrain warning Terrain near or above an altitude; saved as a layer
Tool What it gives
Range rings Circles at distances from a centre; saved as a layer
UTM / MGRS grid Grid lines with labels; saved as a layer
MGRS references The MGRS reference of clicked points

These work on an ordinary layer instead of terrain, and always save a new layer: Buffer, Density (heatmap), and geometry tools (points to tracks, clip, simplify, smooth, resample, great circle, offset, snap to borders, merge), plus Merge rasters.

Any analysis can take a building layer into account: Loka turns the buildings into heights (5 m cells by default) and adds them to the terrain. Set it in the tool’s scene settings.

Every tool has an endpoint under /api/v2/elevation-layers/{id}/analysis/, for example profile, line-of-sight, viewshed or radio. Profile, line of sight, heights, terrain route and MGRS references also answer a GET with a read-only API token; the others need a signed-in writer. The architecture flows show line of sight and viewshed step by step.