Skip to content

Changelog

1.6.0 — Stacked elevation, ARINC 424, more terrain analysis, KML and JPEG 2000, 3D pages offline (2026-12-05)

Section titled “1.6.0 — Stacked elevation, ARINC 424, more terrain analysis, KML and JPEG 2000, 3D pages offline (2026-12-05)”

Catalog schema v18: one additive column (elevation_layers.fallback_layers, empty for every existing layer), so analyses on existing layers are unchanged. An install on 1.3.x, 1.4.0 or 1.5.0 upgrades in place; the step v17 → v18 takes a backup first and asks to be confirmed: loka.ps1 upgrade -AllowMigration or loka.sh upgrade --allow-migration for the Docker bundle, and the Windows setup asks you to type YES. The .deb migrates on start and keeps a copy of the old catalog. An install on 1.2.0 or older still needs the v15 → v17 migration from 1.3.0.

  • The 3D Tiles preview and the workspace scene (“Open in CesiumJS”) load CesiumJS 1.121.1 from Loka Server (/vendor/cesium/1.121.1/) instead of unpkg.com, so they work on an offline install. The console build copies it from the pinned cesium package (apps/admin-web/scripts/copy-cesium.mjs); the web bundle grows by about 20 MB.
  • Their Content-Security-Policy no longer allows unpkg.com: scripts, styles, workers and fonts come from this server only (plus blob: scripts, which CesiumJS workers start from).
  • An elevation layer can name up to 4 other elevation layers of its workspace that answer where it has no height: outside its cells or in a void. Typical: a fine local DEM over a coarse global one (GMTED2010), as Carmenta’s heterogeneous elevation. PATCH /api/v2/elevation-layers/{id} with {"version", "fallbackLayers": [id, ...]} (administrators; [] removes them). Fallbacks of a fallback are not followed; a fallback that is deleted, not ready or in another workspace is skipped.
  • Every terrain analysis reads the stack: an observer standing outside the fine DEM no longer gets “no observer stands on terrain of this layer”. loka-analysis takes --cells more than once (priority order, at most 8); the first layer with a height at a point wins, per point.
  • The default grid and sampling step follow the finest layer over the observer’s degree, so an observer on the coarse fallback still gets the fine layer’s detail where it exists.
  • Not yet stacked: the 2D view, WCS, terrain tiles and the browser-side analysis read the layer alone.
  • The usage band drawn on top now follows the compilation scale of the band’s cells: a band is preferred down to 1.3 times its most common compilation scale (it was twice the nominal range of the band). Before, a coastal band compiled at 1:180,000 took over from 1:700,000; at 1:340,000 it was drawn with its town names already hidden by SCAMIN (259,999 in NOAA cells) while the general band that still shows them was masked out. report.json records the scale per band; charts built before keep working with fixed limits derived from the usual compilation scale of each band.
  • The catalog now stores each cell’s compilation scale (cells[].compilationScale was always 0).
  • S-52 text with a body size above 10 (settlement and land area names) is drawn smaller: it grows by 30 % of the extra size instead of in full, so large names no longer push smaller names out of the label cache.
  • New display switch show_buoyage_boundary (off by default; WMS parameter, display presets and the console’s ENC display settings): draws the A/B line (MARSYS51) around buoyage-system areas, as Carmenta and older PresLib tables do. It stays off by default because producers encode one such area per cell, so the line follows the cell edges, and the S-101 rule draws nothing. Charts must be imported again to have the line available.
  • Chart symbols are a per-chart setting: points drawn with simplified or paper-chart symbols, area boundaries plain or symbolized (S-52 variants A and B). GET /enc-charts/{id}/style reports pointStyle, boundaries and lookChangeable; PUT takes pointStyle (simplified, paper) and boundaries (plain, symbolized) and restyles without a new import. The console’s Style tab has a Symbols section for them. The default stays simplified points and plain boundaries; symbolized boundaries draw restricted areas the way Carmenta does (for example the fishing restriction box around Jarvis Island). Charts built before this release keep their look until they are imported again.
  • The aeronautical import reads ARINC 424 as well as AIXM 5.1: the FAA CIFP file FAACIFP18 (or the FAA’s CIFP_<cycle>.zip as it is) becomes the same layers with the same chart style. Read so far: airports and heliports (PA, HA), runways (PG) as lines from threshold to threshold, VOR, VOR/DME, VORTAC, TACAN, DME (D) and NDB (DB, PN) with frequency or channel, enroute and terminal waypoints (EA, PC), airways (ER) as route segments, and controlled (UC) and restrictive (UR) airspace as areas with class and limits (arcs, circles and great circles of the boundary records drawn), and SIDs, STARs and approaches (PD, PE, PF) as lines per procedure and transition in a fourth layer, procedures, with RF and DME arcs and the missed approach dashed, drawn at 1:1 500 000 and larger. The whole FAA file (397 000 records) gives about 178 000 features in some 20 seconds. Details: docs/ARINC424.md.
  • The chart style draws runways (new line class runway, not labelled) and procedures (SID, STAR, approach, missed approach).
  • Route segments carry their en-route data as ICAO Annex 4 asks of en-route charts: magnetic track, distance (NM) and minimum en-route altitude, written along the segment below the designator (route_data; from ARINC 424 airways, and from AIXM magneticTrack, length and minimumEnrouteAltitude where the message has them). Layers imported before keep their labels as they were.
  • US class C airspace is drawn in magenta (new area class class_c), as on FAA charts.
  • The chart follows ICAO Annex 4, Appendix 2 more closely (checked against the GEN 2.3 symbol pages of the Singapore AIP and the UK Military AIP):
    • RNAV waypoints are four-pointed stars, in a circle when flown over and filled when compulsory (new point classes rnav, rnav_c, rnav_fo, rnav_fo_c); named intersections keep the triangle, as on FAA charts;
    • procedure tracks are black with arrowheads in the direction of flight and the designator in a box; transitions dotted (new class transition), the missed approach dashed. They were green, orange and purple without labels;
    • advisory and flight information routes (designator suffix F or G) are dash-dot, one-way segments carry arrowheads (new line classes route_oneway, route_adv, route_adv_oneway), from ARINC 424 and from AIXM designatorSuffix and RouteAvailability direction;
    • obstacles are labelled with the elevation of the top over the height above ground in brackets (AIXM verticalExtent), and a group of obstacles (group YES) gets its own symbol (obstacle_group, obstacle_group_lit). Layers imported before keep their symbols; import again to get them.

Analysis: where the reference server still did more (WP4, plan in docs/WP4.md)

Section titled “Analysis: where the reference server still did more (WP4, plan in docs/WP4.md)”
  • Visibility index of an area: POST …/analysis/visibility-index with observerArea and targetArea (a ring [[lon, lat], …] or a GeoJSON Polygon/MultiPolygon) gives, for every place in the observer area, the percent of the target area visible from there (red little, green all of it). The answer’s stats carry isolines at levels (default 25, 50, 75 %), the best position, the mean and the area at or above each level. Large areas sweep a lattice of positions and interpolate between them (positionsStride; maxPositions sets the limit). Without observerArea the tool still counts observers, as before.
  • Terrain speed: POST …/analysis/speed with a bbox saves the speed of a mover in every cell in km/h (dark red no-go, through yellow, to green), from the slope, land cover and roads.
  • Vehicle profiles: mover also takes amphibious (a tracked vehicle that swims at 10 km/h), and vehicle gives a profile of its own: \{base, topSpeedKmh, maxSlopeDeg, swimSpeedKmh, landCoverFactors: \{class: factor\}\}. In route, reach, accessibility and speed.
  • No-go and threat areas: areas: [{area, kind: "noGo" | "threat", cost}] in route, reach, accessibility and speed. A no-go area (minefield, restricted area) is closed; a threat area multiplies the time to cross it by cost (default 2), so a route crosses it only when going round costs more. Routes report threatLength, amphibious ones swimLength.
  • Routes through waypoints: via: [[lon, lat], …] (or waypoints for the whole list) routes leg by leg; the answer adds legs with the length, time, ascent and descent of each.
  • Vertical clearance: POST …/analysis/flight-clearance takes altitudes (one per waypoint, linear between them) besides one altitude, and obstacles: obstacles: [\{name, at, radius, height | altitude\} | \{name, polygon, height | altitude\}] and/or obstacleLayer: \{layerId, heightField | altitudeField, nameField, defaultHeight, radius\} (a vector layer of points or polygons). With lateralClearance obstacles beside the route count too. The answer adds legs with the clearance over the terrain and over the obstacles, what controls it and a label such as “Leg 2: 55 m over obstacle Ridge hut at 22.0 km (under the margin)”, and controlling for the whole route; samples carry the planned altitude. The computation moved from the Go handler to loka-analysis flight-clearance.
  • Ridges and valleys as vectors: POST …/analysis/ridges with output: "vector" saves ridge and valley lines (kind, length_m, drains_km2, height_m), with output: "points" peaks and pits (kind, height_m, relief_m); the TPI raster stays the default. Valleys come from D8 flow accumulation over the pit-filled terrain, ridges from the same on the terrain turned upside down, traced into lines between confluences; flat ground has none. Options: minAreaKm2 (area draining through a line, default 0.5), minLength, peakRadius (default 1000 m), minRelief (default 30 m), smooth, cell (default 150 m). New command loka-analysis ridges.
  • Ellipses and rings: range rings take ellipse: {semiMajor, semiMinor, rotation} (the distances scale it), innerRadius (a minimum range, a hole in polygons) and geometry: "line" | "polygon". The dome takes radiusMinor and rotation (an elliptic footprint, radius being the semi-major axis), radiusVertical (its height) and innerRadius (the footprint becomes a ring, or a ring sector with width).
  • Corridor corners and ends: lineJoin (round, miter, bevel) and lineCap (round, butt, square) in POST …/analysis/corridor; the default stays round and round.
  • Tree heights from land cover: vegetation.classHeights ({"10": 15, …} or "worldcover") reads the vegetation layer as land cover classes and gives each class a tree height for the line of sight, the viewshed and the other analyses that take vegetation. A raster keeps the most common class per cell; a polygon layer names its class attribute in classField.
  • UTM/MGRS grid as a WMS layer: GET /api/v2/grid/wms (GetMap, EPSG:3857 or EPSG:4326) draws the grid for the map view, nothing saved. The spacing follows the scale (100 km, 10 km, 1 km or 100 m, lines at least 70 pixels apart; SPACING forces one), zoomed out it draws the grid zones with their designators. LAYERS=mgrs labels the 100 km squares (32U MA) and the lines with their digits in the square, LAYERS=utm labels the lines in kilometres; STYLES=light for dark maps, LABELS=none for lines only.
  • loka-analysis: route, reach and accessibility moved from main.rs to movement.rs; the mover is now a profile (mobility::Mover struct with Foot, Wheeled, Tracked, Amphibious) and the ground a mobility::Ground (water rule, land cover, area factors).
  • WFS answers OUTPUTFORMAT=application/json (and json) with GeoJSON, the plain MIME type OpenLayers, Leaflet and most WFS clients send. Before, only geojson and application/json; subtype=geojson worked; plain application/json was refused by MapServer (“not a permitted output format”). Layer and workspace WFS both carry the new format, and GetCapabilities lists application/json. Mapfiles are regenerated at start, so existing layers get it without republishing.
  • Vector import takes KML and KMZ (Google Earth), read by GDAL’s LIBKML driver (POST …/layers/import-vector with one .kml or .kmz). KML folders may mix points, lines, polygons and MultiGeometry, so each folder becomes one table per geometry type (<folder>, or <folder>_points / _lines / _polygons when it mixes types); MultiGeometry is split into its parts and heights are dropped. One table is published as a layer at once, several become a GeoPackage store to publish from, as for a multi-table GeoPackage. A KMZ is checked before GDAL opens it (entry count, size, compression ratio, symlinks, a KML inside); NetworkLinks and external styles are not fetched. Empty documents are refused with 422 INVALID_KML. The imint_formats samples (buildings.kml, buildings.kmz, points.kml) each import as one layer.
  • Vector tiles of a Layer Group: GET /api/v2/layer-groups/{id}/mvt/{z}/{x}/{y}.pbf gives one tile in which every vector member is its own source layer, named by the member’s WMS name and in group order (a VMap0 group carries land, water, roads … together, as Carmenta’s vmap0mvt does). Each member’s tile is written by MapServer from its own published mapfile, as for a single layer, and the tiles are joined (MVT layers are a repeated protobuf field). Raster members are left out. With …/mvt/tilejson.json (one vector_layers entry per member) and …/mvt/style.json (the flat template, one colour per member). ETag over the group and every member’s revision; no-store when a member is live PostGIS or WFS. Raster tiles of a Layer Group in MapCache (WMTS / TMS / XYZ) were already there and are unchanged.
  • Console: a “KML / KMZ” tile under Vector in New Data Source (one .kml or .kmz); KML stores carry the KML / KMZ badge in the store list, and KML layers show “KML / KMZ” as their format.
  • Raster import takes JPEG 2000 (.jp2, .j2k; JP2 or a raw codestream, recognised by its header) and images placed only by ground control points. JPEG 2000 is converted at import to a Cloud Optimized GeoTIFF; an image with GCPs (3 or more, in an EPSG system) or a rotated geotransform is warped to its system (bilinear) with an alpha band, so the corners outside the image stay transparent. The imint_imagery samples s2_tci.jp2 and s2_gcp.tif land on the same extent as s2_tci.tif. Errors are 422 RASTER_CONVERSION_FAILED. The console’s GeoTIFF tile still offers .tif / .tiff only (adding .jp2 there changes the accepted UI).
  • WCS 1.1.1 GetCoverage in the forms older clients send: FORMAT=image/geotiff (any case) is read as image/tiff, a BOUNDINGBOX in latitude/longitude order with the short EPSG:4326 is read as the URN (urn:ogc:def:crs:EPSG::4326, the axis order it was meant in), and GetCapabilities with only ACCEPTVERSIONS answers the first version listed. The standard 1.1.1 requests (multipart/mixed coverage) were already right.
  • Weather: WMO wind barbs. A GRIB import with 10 m wind now also makes “Wind barbs 10 m” (style mode wind-barbs): the speed rounded to 5 knots as half barbs, full barbs and pennants on a staff pointing to where the wind comes from, a circle for calm, in thin black lines. The feathers lie on the low-pressure side, left of the wind in the northern hemisphere and right of it in the southern one: each hemisphere is its own MapServer layer reading its half of the step (cropped at the equator through GDAL vrt://), both under the layer’s WMS name. An arrow layer can be switched to barbs through its style. When the import also holds the significant wave height, it makes a Layer Group “Waves and wind” with the barbs over the waves (the import response lists it under groups; its WMS passes TIME to both), as Carmenta’s ext_meteorological shows them.
  • Weather: the wave height scale is now the spectral one of Carmenta’s WaveHeight (dark blue, cyan, yellow, red, purple) in even 0.5 m steps from 0 to 8 m, so a stretched scale spreads evenly over the data like its “FullRange” lookup. The old scale bunched its colours below 2.5 m and started near white, so stretched over a narrow range most of the sea came out pale with a dark ring. Mapfiles are regenerated at start, so existing wave layers take the new colours after the upgrade (cached tiles of them in MapCache need a reseed).
  • 3D buildings: the height from floors × storey height (levelsField, storeyHeight) when the height attribute is empty was already there (API and the 3D Tilesets page); it now has a test.

1.5.0 — Weather, aeronautical charts, S-63, 3D buildings and the workspace in CesiumJS (2026-11-29)

Section titled “1.5.0 — Weather, aeronautical charts, S-63, 3D buildings and the workspace in CesiumJS (2026-11-29)”

Catalog schema stays v17; no migration, so an install on 1.3.x or 1.4.0 upgrades in place. An install on 1.2.0 or older still needs the v15 → v17 migration from 1.3.0.

Workbench: charts, 3D lines and settings per point

Section titled “Workbench: charts, 3D lines and settings per point”
  • The height chart (profile, line of sight, flight) shows in 3D as well, and is drawn at the panel’s real size: 12 px text that no longer stretches, height and distance ticks with round values, the sight line, the obstacle and an altitude labelled.
  • In 3D a result is drawn once: line of sight, flight, air route, route, camera, corridor and dome no longer add their 2D ground lines on top of their 3D lines (the sight line was doubled, its points looked off the line).
  • Settings per point: in visibility index, coverage, airspace and radio every point can have its own height and radius (radio also its own EIRP), and in line of sight to many targets the observer and each target their own height. “Per point” under the point list; an empty field keeps the tool’s value. loka-analysis takes {at, height, radius, eirpDbm} for observers and transmitters and {at, height} for targets; the grid covers the largest reach.
  • The console map uses loka.gl 0.3.0.
  • ENC imports recognise S-63 protected data (SERIAL.ENC, PERMIT.TXT, signature files, encrypted cells). With a hardware id (LOKA_S63_HW_ID) and the exchange set’s PERMIT.TXT, cells are decrypted with their permits and built like S-57; the answer lists decrypted, expired and refused cells. Without them the upload is refused with 422 S63_NOT_SUPPORTED and a summary.
  • Blowfish, user and cell permits and cell decryption are built in (no new dependency) and match the worked examples of the S-63 standard. Signature checks and real permits (IHO OEM registration) are still to come: docs/S63.md.
  • New store type Aeronautical (AIXM): AIXM 5.1 messages (or a ZIP of them) become up to three vector layers, airspaces, points and routes, read from airports and heliports, navaids, designated points, obstacles, airspaces (polygons, circles and arcs) and route segments. Of the time slices the latest baseline is used; both axis orders are understood.
  • New vector style mode aeronautical, after ICAO Annex 4 (checked against the Singapore and Spanish AIP GEN 2.3 and the AIXM symbol set): aerodromes civil, joint and military; VOR hexagon, VOR/DME, VORTAC and TACAN, DME, NDB, filled when they are compulsory reporting points; compulsory and on-request reporting points; obstacles with their elevation, lighted ones with rays; TMA solid, CTR dashed, ATZ dotted, FIR with ticks, prohibited, restricted and danger areas hatched inside; route designators in a box; compass roses round VOR-type navaids and navaid data boxes (name, frequency, ident) from the AIXM equipment features; airspace class in the label. Area labels (identification over upper and lower limit) sit inside each area below its top, so nested areas keep them apart.
  • Checked head to head against a published VFR chart of Jakarta at the same extent and scale, and brought closer to it: controlled airspace is no longer filled but has a tint band along the inside of its boundary; vertical limits are written upper over lower with a rule between; aerodrome labels carry elevation, longest runway and TWR/ATIS frequencies (AIXM Runway, services and radio channels); compass roses are drawn under the points by a layer of their own, so they no longer push neighbouring navaid labels off the map.
  • The layer’s Style Editor shows the chart legend and can put the chart style back.
  • The demo builds Jakarta aeronautical chart, a layer group of the AIXM layers over VMap0 sea and land in chart colours.
  • loka.gl 2D in the console draws on white, as the OpenLayers viewer does (it was black, which hid black chart symbols on layers without a background).
  • POST /api/v2/workspaces/{id}/aeronautical/import; demo data in docs/examples/aixm/, loaded by the demo as “Jakarta AIXM”.
  • A polygon layer of buildings becomes a hosted 3D Tiles 1.1 tileset on the server: each footprint (holes included) is raised to its height from a height field, a storeys field × storey height or a default height. Tiles are glTF with the building’s id, name and height as feature metadata, in a quadtree of at most 2 000 buildings per tile.
  • Ground from an elevation layer (terrain at each building’s centre, with the EGM96 geoid for ellipsoidal terrain) or the ellipsoid.
  • Console → 3D Tiles → From buildings; POST /api/v2/layers/{id}/tileset3d. The demo builds the Jakarta OSM buildings (9 561 in about a second).
  • New store type Weather (GRIB): GRIB 1/2 files (one per forecast step is fine, or one ZIP) become raster layers per parameter: temperature at 2 m (°C), wind speed at 10 m with a wind arrow layer, precipitation (the shortest accumulation, mm), significant wave height (m), and every other field with a colour scale over its data range. Longitudes 0–360 are moved to −180…180. POST /api/v2/workspaces/{id}/weather/import.
  • Each layer is one GeoTIFF per valid time behind a tile index, published with a WMS time dimension: TIME=2026-11-28T06:00:00Z picks a step, without TIME the first step is drawn; GetCapabilities lists the steps. GET /api/v2/layers/{id}/times lists them as JSON.
  • Colour scales per parameter (temperature, rain, wind, waves), interpolated between grid cells; "stretch": true in the style spreads the scale over the layer’s data range instead.
  • Wind arrows point where the wind blows, longer with the speed; drawn per step from U and V.
  • The layer preview has a time slider with play; weather layers stay out of the Tile Cache (a cached tile would keep one step).
  • A public NOAA forecast for the demo: distributions/demo/fetch_weather.py (GFS wind, temperature, rain and GFS-Wave waves for Java, 48 h in 3 h steps); 32 files import in about 35 s.
  • New workbench tool Accessibility (Movement): over the area shown, each place is GO, SLOW GO or NO GO for a walker, a wheeled or a tracked vehicle, from the steepest slope there (the slower of going up and down), the land cover and the roads, with the speed model of route and reach. GO from 50 % of the mover’s top speed and NO GO below 10 % by default (both adjustable). The result card gives the area of each class. POST /api/v2/elevation-layers/{id}/analysis/accessibility.
  • Bogor with ESA WorldCover and OSM roads (16 × 18 km at 31 m): 1.5–2.7 s.
  • Every request is counted and timed per service (WMS, WFS, WCS, tiles, vector tiles, terrain, 3D Tiles, analysis, API, console) with its status class.
  • GET /api/v2/metrics: Prometheus text format (requests, latency histograms, map renders running, Go memory, free disk of the data directory, catalog counts); an administrator’s session or API token, never anonymous.
  • Console → Monitoring: uptime, requests, renders, memory and disk, and per service the requests, median, 95 % and errors, refreshed every 5 s.
  • A layer drawn as MIL-STD-2525 tactical graphics serves its control points (with their codes and names) over WFS. WFS reads them through a mapfile of the layer’s own data, written beside the published one and again after every publish; the drawing is unchanged.
  • Roads and land use of Bogor from OpenStreetMap (distributions/demo/fetch_osm.py, Overpass API) and ESA WorldCover 2021 land cover instead of made-up data; land use stays in UTM 48S.
  • A tactical scenario (make_tactical_scenario.py): the defence of the west coast of Java around the demo’s units, with FEBA, phase line, boundary, FSCL, obstacle line, friendly and hostile axes, assembly areas, battle position, engagement area, objective, landing zone and a named area of interest, instead of the gallery of every graphic.
  • The road buffer is made on the Bandung roads; land use is drawn translucent and the roads thin.
  • check_demo.py checks WFS on the tactical layers too (89 checks).
  • The scenario grows to a brigade defence of the coast: 67 units, ships and aircraft with course and speed, and 44 tactical graphics; the units come from the scenario script.
  • Eight more saved analyses around Bogor and Gunung Salak: visibility index of five posts, radio coverage of two VHF relays (Longley-Rice), ridges and valleys, height bands, terrain warning at 1,000 m, sun shadow, go / no-go for tracked vehicles and a 20-minute travel time on the roads (146 checks).
  • The Jakarta buildings are built a second time on the Copernicus terrain (“Buildings Jakarta (OSM) 3D on terrain”), for 3D views with terrain and lines of sight through the city.
  • GET /api/v2/workspaces/{id}/scene3d: a CesiumJS scene of one workspace, opened from the console (Elevation → Open in CesiumJS, 3D Tiles → Workspace in CesiumJS): its terrain, 3D tilesets coloured by height with sun shadows, its published layers draped as WMS, and a click-to-measure line of sight, with or without buildings, drawn in 3D. Same session as the console, no token.
  • The demo package carries the San Francisco Bay chart of the website (66 NOAA cells, optional ENC/sfbay_noaa_enc.zip in the geodata folder), and the loader imports it.
  • The WMS of layers and layer groups reads parameter names in any case, as OGC requires. CesiumJS sends them in lower case (service=WMS&request=GetMap…) and got HTTP 400, so analysis and other layers could not be draped on 3D terrain. A name given twice in two spellings is still refused.

1.4.0 — Military map formats, MIL-STD-2525, terrain analysis and the analysis workbench (2026-11-25)

Section titled “1.4.0 — Military map formats, MIL-STD-2525, terrain analysis and the analysis workbench (2026-11-25)”

Catalog schema stays v17; no migration, so an install on 1.3.x upgrades in place (styles are stored as JSON; new fields are optional). An install on 1.2.0 or older still needs the v15 → v17 migration from 1.3.0.

  • The .deb now carries loka-analysis, loka-mil and the mil-sym tactical graphics renderer (and depends on fonts-dejavu-core); loka.service sets LOKA_MILSYM_JS. Without them terrain analysis and MIL-STD-2525 failed on a native install.
  • Tactical graphics are drawn again only when their control points, style or the server version change; the fingerprint is kept beside the prepared file. A restart with tactical graphics layers no longer waits for them (demo instance: 29 s → 2 s).
  • The release smoke test also imports an elevation layer and runs a terrain profile.
  • distributions/demo/: a demo data package with freely redistributable data (attribution inside), a loader that fills a workspace called Demo through the API (rasters, vectors, a layer group, military products, MIL-STD-2525 units and tactical graphics, elevation, an ENC chart, 3D Tiles and saved analyses), and a read-only check that every item is served (85 checks).
  • compose.demo.yml runs a demo instance beside other installations (port 18090, own volume).
  • The demo data package is attached to the release as loka-demo-data-1.4.0.zip.

Military map products (Data Stores → Military map product)

Section titled “Military map products (Data Stores → Military map product)”
  • One ZIP (or one NITF file): CADRG/CIB through A.TOC, ADRG, ASRP/USRP and NITF become raster layers (Cloud Optimized GeoTIFF; palette charts expanded to RGB; a CRS without EPSG code, such as ARC polar zones, warped to EPSG:4326); one layer per RPF scale/zone or NITF image, at most 16.
  • A VPF database (VMap0/1, DNC) becomes a GeoPackage store with one table per feature class, published like any GeoPackage. Checked with the full VMap0 SASAUS library (59 feature classes).
  • Archives keep their folders (each path component checked); POST /api/v2/workspaces/{id}/military/import.
  • New style mode for point layers: the symbol code attribute (2525B/C letters or 2525D/E digits), an optional label drawn as the unique designation (T), and a size. Symbols are drawn by milsymbol 3.0.4 (MIT, same library as loka.gl) and become SVG symbols in the layer’s mapfile, so WMS, WMTS and QGIS show them. Unknown codes are drawn as a small circle. Style Editor → MIL-STD-2525 symbols.
  • Layer WMS (file and snapshot layers) is drawn by the MapServer FastCGI workers that ENC charts already used, instead of a new CGI process per request; CGI remains the fallback and stays in use for live PostGIS layers. A 820×916 GetMap of a point layer: about 280 ms → 66 ms.
  • Layer group WMS draws its members at the same time and encodes the result with fast PNG compression: a six-layer group went from about 750 ms to 280 ms.
  • MIL-STD-2525 layers (and groups containing one) are cached in MapCache with 4×4 metatiles and a 160 px margin, and the console’s WMS tile preview asks for a 160 px gutter, so symbols and their labels are no longer cut at tile edges. Only these tilesets get a new cache generation.
  • One symbol (frame and icon) per code instead of one per code and label: fewer classes, and the legend lists each code once as “Friend · Ground · Battalion/squadron (code)”. The label (T) is drawn by MapServer left of the frame.
  • The console’s legend shows the symbols as small SVGs (GET /api/v2/layers/{id}/milstd/legend); GetLegendGraphic sizes its keys to the largest symbol so rows no longer overlap.

Live WFS stores (remote WFS as a data source)

Section titled “Live WFS stores (remote WFS as a data source)”
  • New store type WFS service (administrators): a remote WFS (another map server, a track or sensor service) is read live. Its layers are ordinary vector layers; MapServer asks the service for the current features on every WMS, WFS and tile request (CLOSE_CONNECTION=ALWAYS), and MapCache keeps their tiles for 10 seconds. POST /api/v2/workspaces/{id}/wfs-stores {displayName, url}. Checked with the tactical-client track service (moving tracks, dead-reckoned per request).
  • Stored as a vector store whose file is a GDAL WFS description (source.wfs.xml); the catalog records it as format “geopackage” until the next schema version and the API shows “wfs”.
  • Feature type names keep their namespace prefix (trk:Tracks).
  • Codes that appear in the data after publishing get their symbols without a republish: before drawing, the server checks the codes again (every 5 s for WFS layers, every minute otherwise, in the background) and rewrites the mapfile when the set changed. Tested: a new track’s symbol was in the map 2.3 s after it appeared in the feed.
  • Optional direction attribute: an arrow in the direction of movement (amplifier Q; MapServer turns counter-clockwise, so the layer reads 360 − direction through OGR SQL). Optional speed attribute written right of the frame (amplifier Z).
  • The console uses a new loka.gl build: the map background is the console’s light surface in 2D and 3D (it was black outside the data), WMS tiles come in 2×2 blocks (a first view of the elevation layer: about 15 requests instead of 60), and airspace coverage in 3D is drawn as filled levels at their altitude as well as outlined (fills at a fixed altitude no longer exceed the GPU buffer limit).
  • Elevation layer WMS answers carry an ETag and may be kept by the browser for 5 minutes, so a view panned back or a tile asked again is not drawn again; a rebuilt layer gets new ETags.
  • Airspace coverage with many sensors no longer freezes the page: the map gets each update as one batch instead of feature by feature (10 spread sensors, 448 level polygons and 686 outlines: about 30 s of frozen page before, under 1 s now), and the server sweeps the sensors on up to 8 threads (10 sensors over 2.4 million cells: 2.7 → 2.3 s; the rest is colouring and contours).
  • A second sensor or point placed on the map shows its marker at once (it showed only its label until the map was zoomed or moved).
  • 3D fixes: the dome no longer shows a ring floating at its top altitude; the corridor is drawn as a volume (bottom, top and posts).
  • New sidebar group Analysis → Workbench (/analysis): every terrain, visibility, movement and flight tool on one page. The tool catalog is grouped by the question each tool answers (Terrain, Visibility & sensors, Movement, Flight, Grids & references) and has a search box (“radar” finds Coverage and Airspace). The elevation layer and the tool are kept in the address (?layer=…&tool=…), so a link opens the same tool.
  • Scene settings: buildings, trees, land cover and roads are set once and kept for every tool, with a note on which of them the current tool uses (they used to be asked again per tool).
  • The Elevation page’s Analysis tab is replaced by an Analyse button that opens the workbench on that layer.
  • The vector and raster tools are in the same catalog (groups Vector data and Raster data): buffer, density, points to tracks, clip, simplify, smooth, resample, great circle, offset, snap, merge and merge rasters. Pick the input layer (only layers the tool accepts are offered); it is drawn on the map over the elevation hillshade, the map fits it (also for layers in a UTM zone), clip can take the map view as its box, and the result is drawn over the input. They work without an elevation layer. The layer page’s Buffer, Geometry tools and Merge rasters cards are replaced by an Analyse button that opens the workbench on that layer (?tool=…&input=…).
  • After a run the map zooms to the picked points and the drawn result when they are off screen or too small to see.
  • Map-first layout: the workbench fills the window under a thin toolbar (Tool, Terrain, Scene). A panel of numbered steps (place on the map or pick the input layer, settings with “More settings”, save) has Run at its foot; the map takes the rest, with the next step as a prompt over it, the legend of the result (colours as the server draws them), a result card with the main numbers, and the height chart for profile, line of sight and flight clearance. Points show as chips that can be removed or typed; numbers carry their unit and are checked before a run, next to the field.
  • Choose the area of the terrain tools (slope, aspect, ridges, roughness, height bands, contours, sun shadow, terrain warning, grid): draw a box on the map (two corners; its size is shown, and the same box is kept for the next terrain tool) or use the map view.
  • Help for every tool: every field has a line of help under it (what it means, its unit, typical values), and every tool a How to use box in the panel (the question it answers, the steps, how to read the result, what to know), folded or open as you leave it. The same guides are on a new page Analysis → Guides (/analysis/guides), with a search and a link that opens each tool. All text is in components/analysis/guides.ts.
  • Run without saving: every tool that writes a layer now runs without saving by default ("preview": true on the API): a raster comes back as an image drawn on the map (kept an hour, GET /api/v2/analysis/previews/{id}.png), a vector result as GeoJSON; nothing enters the catalog. Tick Save as a layer before running, or press Save as layer on the result.
  • Own slope classes: up to 8 rising class breaks in degrees or percent (thresholds), coloured from green through yellow to brown; the legend follows them.
  • Placing in 3D: points, the vertices of a line and the corners of an area can be clicked on the 3D terrain; the camera stays where it is while points are added, and the map is not rebuilt (no flash): only the analysis layers on it are replaced. Markers are drawn over the terrain instead of half hidden by the slope in front of them.
  • The workbench map is loka.gl in 2D and 3D: one WebGPU map; the 2D | 3D switch turns the terrain and the tilt on or off on the same map instead of opening a second viewer. Points, lines (vertices by clicks) and area corners are placed the same way in both, and results are updated in place. Unsaved raster results are served as a WMS (GET /api/v2/analysis/previews/{id}/wms), so they are drawn in 2D and draped in 3D like a saved layer. The workbench needs a browser with WebGPU (Chrome or Edge).
  • One map in 2D and 3D: a 2D | 3D switch on the map opens loka.gl on the same area, with the result, the legend and the panel still in place; Run updates the 3D view. Terrain settings (elevation layer, shown as colour and hillshade, hillshade or colour, opacity) apply to both.
  • Every tool is defined once (components/analysis/registry.ts: where it is placed, its fields, scene settings, saving, request, result and legend); the panel, fields, legend and result card are drawn from those definitions, so adding or changing a tool or a field is one entry.
  • Tables are paged: every list in the console (layers, stores, services, logs, cells, …) shows 15 rows a page with page buttons and a choice of 10 to 50 rows (remembered); a filter goes back to page 1. The sidebar stays in place and scrolls its own menu.
  • New Rust tool loka-analysis (crate analysis/) reads the DTED cells of an elevation layer directly (no GDAL, so the same code can later run in loka.gl as WASM): terrain profile, line of sight (great circle, Earth curvature and refraction k = 0.13) and viewshed (radial sweep, cells square on the ground, up to 100 km radius).
  • API under /api/v2/elevation-layers/{id}/analysis/: profile and line-of-sight answer JSON (POST from the console; GET with query parameters, e.g. line=lon,lat|lon,lat, also works with an API token, for map clients); viewshed, slope (gdaldem, degrees, coloured) and contours (gdal_contour, attribute elev) create a new raster or vector layer in a workspace, so results are styled, published and cached like any other layer. Optional bbox limits slope and contours to an area.
  • Console: elevation page tab Analysis: draw a profile line, click observer and target for a line of sight (map line and profile chart in green/red, obstruction marked), click an observer for a viewshed, slope and contours for the area on the map; results shown on the map at once.
  • More analyses (the analysis families of military GIS engines, all on the server):
    • JSON: heights (points), targets (line of sight from one observer to up to 500 targets), route (fastest way over the terrain, A*, for foot (Tobler), wheeled (≤ 17°) or tracked (≤ 30°) movers, water impassable), mgrs (MGRS references), flight-clearance (clearance of a route flown at an altitude, the lowest point and the stretches under the margin).
    • Raster layers: visibility-index (how many of up to 254 observers see each cell), coverage (lowest height above the ground a target is seen at: radar, radio relay), radio (received level in dBm from the ITS Irregular Terrain Model, see below), reach (travel time from a start), shadow (cast by the sun at an azimuth and elevation), terrain-warning (terrain within a margin below or above a flight altitude), aspect, ridges (topographic position index), roughness, height-bands (heights reclassified at given breaks).
    • Vector layers: range-rings, grid (UTM lines with MGRS labels), and POST /api/v2/layers/{id}/analysis/buffer (buffer of any vector layer, in its UTM zone, optionally dissolved).
    • The console’s Analysis tab offers them all, grouped as Terrain, Visibility, Movement, Flight and Map layers.
    • air-route: shortest flight path between two points at an altitude, keeping a clearance above terrain (and buildings), straightened into clear legs; also the lowest altitude at which the direct line is clear.
    • Buffer button on the Data tab of vector layers.
  • 3D view of an analysis (console, loka.gl WebGPU): “Show in 3D” after a line of sight, air route, flight clearance, ground route, profile or a saved result layer. The elevation layer is the terrain at true height (no exaggeration, so lines at absolute altitude sit where they belong); the buildings layer is extruded from Loka’s own MVT of that layer (fill-extrusion, height from the height attribute, else storeys × 3 m, else the default), so a city delivered as MVT shows the same way; sight lines are drawn from the observer’s eye green up to the first obstruction and red beyond it, flight routes at their altitude with their ground track, result layers (viewshed, coverage, radio …) draped on the terrain. Grey hillshade under the scene, labelled markers (observer, first obstruction, target; route start and end; lowest flight clearance), thick lines, and the camera beside the observer looking across the sight line. “Flat ground” (on by default with buildings) drops the terrain and stands the city on one ground height, for elevation layers that are surface models. The analyses take the same choice (ground: "flat", loka-analysis --flat-ground auto: a low percentile of the terrain around the request’s points), so what blocks a line of sight is a building that is drawn and not a bump of the surface model; the result reports the ground used (flatGround) and the 3D view stands on it. An observer inside a footprint stands on the roof (“Observer (on roof)”). Empty text and 0 in the height or storeys attribute count as missing (MVT carries "" for an unknown value), in the 3D view and in the rasterized buildings of the analyses. The 3D markers (observer, blocked, target) stand at their true height (on a roof, in the air) with a thin stem down to the ground, instead of lying on the ground under the buildings.
  • Vendored loka.gl updated from 0.2.1-evaluation.8 (1b586ef) to 0.2.1-evaluation.9 (324a1c7 plus the uncommitted close-zoom precision fix below). Close up, building tiles now load at the display zoom (zoom 14) instead of coarse parents down to zoom 1, where small buildings such as the one that blocks a line of sight were missing; elevated points and labels are drawn at their altitude instead of on the ground; and points, icons and labels stay on the line ends at any zoom (they used to drift up to about a metre at close zoom).
  • Points field in the Analysis tab: the picked points as lon,lat lines, editable for exact coordinates.
  • Viewshed sector and dead zone (as the reference server’s LineOfSightOperator MinDistance with an EllipseOperator sector): direction and width (degrees clockwise from north) report only the part of the circle a sensor facing one way sees, and minDistance (m) leaves out the ground near the observer. Terrain outside still blocks the view. Console: “Sector”, “Direction”, “Width” and “Minimum distance” in the Viewshed form, with the sector sketched on the map. Checked at Bogor: a 90° sector from 3 to 15 km analyses 169.9 km² (π(15²−3²)/4 = 169.6), and the visible part matches the full circle there.
  • Buildings in the analyses: every analysis can take buildings: \{layerId, heightField, levelsField, defaultHeight, resolution\}. The polygon layer (a city imported from GeoPackage, Shapefile, a PostGIS snapshot, or MVT / MBTiles converted to a layer) is rasterized with gdal_rasterize over the area of the analysis only (5 m by default, at most 16 million cells) and loka-analysis adds it to the terrain (--surface): lines of sight, viewsheds, coverage, radio and air routes are blocked by buildings, an observer on a building stands on its roof, and ground routes go around them. Height: the height attribute, else storeys × 3 m, else the default. Tested with 9561 OpenStreetMap buildings of Sudirman-Thamrin (Jakarta): a 3 km street viewshed falls from 3.4 to 0.1 km², the view from the 330 m roof of Two Sudirman reaches 8.2 km²; about 1.1 s each. Note: Copernicus GLO-30 is a surface model (it already holds smoothed buildings and trees); with a buildings layer a bare-earth model (e.g. FABDEM) is the better base.
  • Tested on Copernicus DEM GLO-30 (tile S07 E106, Bogor, Salak, Gede-Pangrango): profile 31 km in about 90 ms, line of sight about 100 ms, viewshed 25 km radius (2 million cells) about 1.6 s, slope 1.2 s and 100 m contours 0.8 s for a 0.4° × 0.3° area.
  • Fixed: slope away from the equator. gdaldem ran on the lon/lat grid with one scale (-s 111120), right north-south only, so at 39° east- and west-facing slopes came out about 20 % too gentle (Lake Tahoe: 87 % of cells in the right 0/3/10/20/30° class). Slope now runs in bands of at most 1° of latitude, each in metres for its own latitude: 99.9 % against Horn slope with true distances (Bogor, near the equator, was already right and stays so).
  • Fixed: aspect away from the equator. gdaldem aspect ignores the pixel size, so on a lon/lat grid it leaned east-west (Tahoe: median 4.9° off). Aspect is now computed by loka-analysis with true ground distances on both axes: median 0.8° (Tahoe) and 0.65° (Bogor), against the same reference, including the colour round trip.
  • Airspace coverage (3D) (POST …/analysis/airspace, as the reference server’s AirspaceCoverageOperator): for up to 254 sensors (radar, radio) the coverage floor of every place, the lowest altitude above mean sea level at which at least minObservers (1–16) of them see a target there, between bottom (default the lowest ground) and top; the airspace from the floor up to the top is covered. Saved as a raster layer (green low floor to red high); the response gives the covered area at each step level (whole multiples of the step) and, for the 3D view, the area covered at each level as polygons (gdal_contour -p). Console: “Airspace coverage (3D)”; Show in 3D draws the edge of the covered area at every level at its altitude over the draped floor. Bogor, two 30 m radars 23 km apart, 30 km: seen by both, 1048 km² at 500 m and 1453 km² from 2000 m (the overlap of the two circles, 1454 km² by formula); about 2–3 s. (loka.gl 0.2.1-evaluation.9 elevated polygon fills grow 512 MB buffers on these shapes, so the 3D view uses outlines.)
  • Radio coverage uses ITM (Longley-Rice) instead of free space plus one knife edge: a Rust port of the NTIA/ITS reference implementation (github.com/NTIA/itm, commit 62168e6, point-to- point mode: horizons, effective heights, terrain irregularity Δh, line-of-sight, diffraction and troposcatter regions, time/location/situation variability), analysis/src/itm.rs. It matches NTIA’s own test cases (the five p2p.csv paths to 0.01 dB, and the command example with every intermediate value). Each cell gets ITM over the terrain profile from the transmitter (at most 250 intervals); default cells are at most radius/250 (120 m for 30 km: about 2 s). New optional inputs: climate (equatorial default, or the six other ITM climates), refractivity (N0, default ITM’s value for the climate: 360 equatorial), polarization, permittivity and conductivity (ground; console presets average/poor/good ground, fresh and sea water), timePercent, locationPercent, situationPercent (default 50) and variabilityMode (default 3, broadcast). Bogor, 30 m mast, 150 MHz, 40 dBm, 30 km: 485 km² at −70 dBm or more (the old estimate said 944 km², too optimistic), 140 km² for 90 % of time and locations.
  • Air route lateral clearance (lateralClearance, metres; console “Lateral clearance (m)”): the route also keeps that distance sideways from every obstacle above altitude − clearance, instead of grazing it (exact Euclidean distance transform over the grid); within that distance of the start and the end only the vertical clearance applies. Sudirman at 200 m with 50 m vertical clearance: 4.40 km grazing a tower, 4.57 km with 150 m lateral, 5.04 km with 300 m.
  • Fixed: coverage colours. The coverage map snapped every cell to the nearest ramp entry (six bands); it now blends between them as intended. The analysis itself was right.
  • Checked against a commercial military map server (2024.2) and GDAL 3.10 on the Lake Tahoe sample DEM (warped to WGS84 and imported): viewsheds from three observers (2 to 30 m, 6 to 8 km) agree with the reference server’s line of sight on 97.6 to 98.7 % of the cells (kappa 0.92 to 0.93) and with gdal_viewshed on Loka’s own cells on 98.0 to 98.7 %, as close as GDAL on the 10 m DEM is to GDAL on the 30 m cells; line of sight to 200 targets agrees with gdal_viewshed on 198 (the other two clear by 0.6 and 2.4 m); coverage height bands match exact straight-line profiles on 93 of 100 random cells (GDAL -om GROUND: 96). Map servers often give slope in percent (thresholds 5/15/30 % = 2.9/8.5/16.7°); Loka’s slope can now be either (below).
  • Slope in percent (unit: "percent", gdaldem slope -p), coloured in the usual classes (clear under 5 %, green to 15 %, yellow to 30 %, brown above) or in your own three rising thresholds; degrees stay the default.
  • Fixed: hillshade and slope away from the equator. Both now run per band of at most 1° of latitude in true metres (each band given a metric georeference before gdaldem, then put back), instead of one latitude scale for the whole layer, which flattened the relief towards the poles (internal/dted/metric.go).
  • Trees in line of sight (vegetation, as the reference server’s TreeHeightInput) for profile, line of sight, targets, viewshed, visibility index, coverage, airspace, radio and air route: a raster of canopy heights (metres above the ground, resampled by the highest value per cell, 0–150 m) or a polygon layer of woods with heightField or defaultHeight (15 m). Combined with the buildings by the higher of the two per cell. Bogor test: 60 m woods block a 30 m mast at 950 m; 10 m woods do not (clearance 16.9 m).
  • On-the-fly viewshed WMS (GET …/analysis/wms, as the reference server’s analysisInput): observers as GeoJSON points (sensorHeight, maxDistance, targetHeight) or observer=lon,lat, drawn into the requested BBOX (EPSG:3857, EPSG:4326 with WMS 1.3.0 axis order, CRS:84) as a green/red PNG; nothing is saved, the viewshed of each observer is kept 15 minutes. First request about 1.2 s, later tiles about 0.3 s. Console: Viewshed → “Live (no saving)”.
  • Land cover and roads in route and reach (landCover, roads, landCoverFactors, as the reference server’s TerrainSpeed and TerrainAccess): a raster of class codes (ESA WorldCover: 10 trees, 20 shrubs, 30 grass, 40 crops, 50 built-up, 60 bare, 70 snow, 80 water, 90 wetland, 95 mangroves, 100 moss) or polygons with a numeric classField, and a line layer of roads (with typeField such as OSM highway: track, path, footway, bridleway, cycleway and steps are tracks, the rest paved). Each class scales the slope speed per mover; 0 closes it (wheeled vehicles stay out of trees, snow, water and wetland). Paved roads double a wheeled vehicle’s speed (80 km/h) and are never lost between grid cells (a road pixel marks its cell). Routes report roadLength. Test (Bogor, synthetic forest band and a road round it): wheeled is blocked without the road and takes it with it (12 km, 10.5 min); on foot the forest slows the walk from 111 to 161 min.
  • Camera footprint (POST …/analysis/camera, as the reference server’s CameraProjectOperator): the ground a camera sees from its position (height above ground or altitude), heading, tilt (below the horizon, 90 straight down), roll and field of view (hfov, vfov or the image size): 64 rays round the image edge marched over the terrain (with buildings and trees) to their first hit, with Earth curvature; rays above the horizon stop at maxDistance. Gives the footprint polygon, the centre and corner hits, the area and the ground resolution at the centre. A nadir frame on flat ground matches 2·h·tan(fov/2) to 1 %.
  • Corridor and dome (POST …/analysis/corridor, …/dome): a route with a width (buffered in the UTM zone) and optional bottom/top altitudes for a 3D volume; a weapon or sensor range as a hemisphere or a sector (direction, width, minElevation, maxElevation) with rings and meridians as 3D lines and its ground footprint. Both answer as GeoJSON and, with a name, are saved as a vector layer. Shown in the console map and in 3D.
  • Density (POST /api/v2/layers/{id}/analysis/density): points or tracks (lines) counted on a grid in the UTM zone, optionally weighted by an attribute, smoothed by a Gaussian kernel of the radius and saved as a raster layer in features per km².
  • Geometry tools (POST /api/v2/layers/{id}/analysis/geometry, operation): clip (to a box or a polygon layer), simplify, smooth (Chaikin), resample, great-circle, offset, track (points joined in the order of an attribute, one line per group), snap (onto another layer or the layer’s own vertices) and merge (dissolve, lines joined end to end); distances in metres in the layer’s UTM zone. Console: layer page → Geometry tools.
  • Merge rasters (POST /api/v2/analysis/merge-rasters): raster layers mosaicked into one COG in EPSG:4326. Console: raster layer page → Merge rasters.
  • Fixed: lines rasterized straight into EHdr came out empty at times with GDAL 3.10; lines are now burnt into a GeoTIFF first.
  • Land cover polygons from OpenStreetMap: classField may hold OSM landuse / natural values (forest, wood, scrub, meadow, farmland, residential, sand, glacier, water, wetland, marsh, mangrove, …), read as the matching WorldCover class; numbers are still class codes.
  • Fixed: layers stored in a projected CRS (e.g. UTM) were read as if in lon/lat by the land cover, roads, buildings and trees rasters (silently ignored), and density, buffer and the geometry tools took the UTM zone from the projected extent (wrong zone, distorted metres; clip to a box failed). Such layers are now reprojected to WGS84 first and the zone comes from the layer centre in lon/lat; a UTM copy of every test layer gives the same results as the WGS84 original.

MIL-STD-2525 tactical graphics on the server

Section titled “MIL-STD-2525 tactical graphics on the server”
  • New style mode for line and polygon layers: MIL-STD-2525 tactical graphics. The geometry gives the control points; loka-mil draws the graphic for each display scale (7 bands, 1:10 000 to 1:1 000 000) into a small prepared GeoPackage that the mapfile draws (solid and dashed lines, labels along their baseline, two text sizes).
  • All 280 symbol set 25 line, area, corridor, fan and orbit codes of the 2024.2 reference catalogue have a drawing rule, by family: lines labelled at both ends (PL, FEBA, FCL, LOA, LD, LL, IFF, FSCL, CFL, NFL, BCL, RFL, MFP, ICL), mid-labelled lines (bearing lines, decoys, linear targets), FLOT and line of contact (scallops), directions of attack and axes of advance (main, supporting, planned, feint, enemy), obstacle lines with teeth (obstacle, antitank, fortified, abatis, mine cluster), wire (fence, concertina), supply routes with traffic arrows, ~70 labelled areas and zones (hatched NFA, ORZ, LAA and contaminated areas; outward teeth for fortified areas and obstacle zones; blue/purple kill boxes), rectangles, air corridors, lanes and crossings, mission tasks, circles, sectors, range fans (rings or sector, from a point with the tactical client’s fan attributes), orbits. Checked side by side with the reference gallery of every line and area. Tactical graphics can also be drawn from point layers (circles, range fans).
  • Tactical graphics of the standard are now drawn by mil-sym-ts 2.10.10 (C5ISR, the MIL-STD-2525 reference renderer, Apache-2.0), run by loka-mil in its embedded QuickJS; the image downloads the pinned npm package at build time (sha512 checked) to /usr/share/loka/mil-sym (LOKA_MILSYM_JS). The 28 reference catalogue codes that are not in MIL-STD-2525D (FLOT and phase-line variants by status, …) keep Loka’s own drawings, and so does everything when mil-sym is missing.
  • Style option Control points (pointConvention): tail-tip (default; a line from tail to tip plus a corridor width, as the tactical client stores them, converted to the 2525D drawing rules: axis tip first + width point, breach/bypass/clear opening + depth, rectangles two centre-line points + width, roadblocks, fords, bridges, contain, ambush, …) or milstd (points already in the drawing rules’ order, width/radius in attribute AM, azimuth in AN, as in mil-sym and loka.gl tactical).
  • Style option Colour (colorMode): affiliation (default; the standard’s colours: friend black, hostile red, neutral green, pending/unknown yellow) or monochrome (black for every affiliation; obstacles stay green and kill boxes blue/purple, as the standard fixes them).
  • Against mil-sym (212 gallery graphics that are in the standard, overlap score): Loka 0.55 → 0.92 (none under 0.4), the reference renderer 0.57, tactical-figure/loka.gl 0.90.
  • Compared with the reference renderer one graphic at a time (240 graphics, same box and size, overlap score), then redrawn where they differed: rectangles along 3+ points are bent corridors; air corridors are 50 px wide by default with the Name/Width/Alt/DTG field block (also ACA and WFZ); breach, bypass, canalize and obstacle bypass are bracketed corridors; clear, fix, follow and assume/support, ambush, attack by fire, moving/halted convoy, roadblocks and craters, overhead wire with pylons, lane/raft/ferry markers have their own shapes; larger direction-of-attack heads, main attack chevron and aviation bowtie; filled antitank triangles (with mines), fortified line and antitank wall waves; mined areas with a mine grid and “M” along the edge; contaminated areas yellow with the CBRN mark; FLOT arches hang below the line; follow and assume/support with the reference tag and head sizes; wire marks per fence type. A part can carry its own colour. Mean overlap score (the catalogue caption left out) 0.67 → 0.83; graphics under 0.4: 45 → 4 (trip wire, fortified position and mine cluster, which the reference renderer itself draws incompletely or outside the box, and the obstacle-effect fix).
  • The overlay is prepared again when the source changes: for WFS layers within the map request (at most every 2 s), so the map asked for right after an edit shows it; for files every minute, beside the request. The same applies to MIL-STD point symbols.
  • WMS (layers and groups) accepts and drops cache-busting parameters that web clients add (_, _t, _dc: a leading underscore, at most 16 characters); before, such a request was refused with 400, so a client that reloads its map this way showed nothing after an edit.
  • WFS accepts FILTER (OGC Filter Encoding 1.1/2.0: comparisons, Like, Null, Between, logical and spatial operators, feature ids), SORTBY, RESOURCEID and the 2.0 request GetPropertyValue. The filter XML is checked against a closed list of elements and attribute shapes (no DOCTYPE, entities or other namespaces) and size limits before MapServer reads it. The capabilities already advertised these operators; until now the gateway refused them.
  • GetPropertyValue needs the layer’s mapfile of this version: republish a layer’s style (or import it again) to enable it on layers published before.
  • New binary in the image: loka-mil symbols (milsymbol in an embedded QuickJS, no Node.js) and loka-mil tacgraph, a prototype of tactical graphics (Phase Line, Main Attack, Unspecified Wire) prepared per scale band; a wasm feature builds the same geometry for browsers.
  • The image installs fonts-dejavu-core for the text inside symbols.
  • Tactical graphics are not yet an API or editor: prepared with loka-mil tacgraph and imported as a GeoPackage.
  • MIL-STD symbols need a file or snapshot layer (not live PostGIS); new codes need a republish.
  • Military imports run within the request.

1.3.1 — Readable addresses, Tile Cache for charts and elevation, landing page (2026-11-23)

Section titled “1.3.1 — Readable addresses, Tile Cache for charts and elevation, landing page (2026-11-23)”

Console and service fixes after 1.3.0. Catalog schema stays v17; no migration, so an install already on 1.3.0 upgrades without -AllowMigration. (An install on 1.2.0 still needs the v15 → v17 migration from 1.3.0.)

  • Readable endpoint addresses: layers and layer groups are addressed as workspace:name in WMS, WCS, WFS, MVT, XYZ, TMS and WMTS. ENC charts, elevation layers and 3D tilesets get readable addresses too, and charts and elevation layers have readable MapCache names.
  • Tileset kinds include ENC charts and elevation layers; their rows open the chart or elevation page instead of a layer preview.
  • Purge in one dialog; a change to the SLD drawing starts a new tile generation.
  • A raster SLD is no longer painted over by a colour-ramp base style; grayscale uses all bands (luminance mode, template).
  • Publish draft button; confirm dialogs open above other dialogs; scroll lock is counted, so closing one dialog no longer unlocks the page under another.
  • loka.gl 3D preview opens on the area covered by both the layer and the terrain (a world raster no longer hides DTED terrain), and waits for the elevation list.
  • Demo city tileset (Bandung) with one-click import in the console and a CesiumJS preview page; a real CC0 sample tileset (b3dm) is documented.
  • Static landing page in site/index.html (English).
  • Working notes, plans and per-release test evidence are no longer versioned; README, CHANGELOG, docs/OPERATIONS.md, docs/RELEASE.md and docs/examples/ remain.

1.3.0 — Vector tiles, WCS for raster layers and 3D Tiles (2026-11-15)

Section titled “1.3.0 — Vector tiles, WCS for raster layers and 3D Tiles (2026-11-15)”

Adds vector tiles, WCS for ordinary raster layers, hosting of 3D Tiles, and layer metadata. Catalog schema v17 (from v15): two additive steps (two new columns on layers, empty for existing layers, then one new table); no existing row or file changes. Upgrading needs deploy.ps1 -AllowMigration after a dry run.

  • Vector tiles (MVT) for vector layers: /api/v2/layers/{id}/mvt/{z}/{x}/{y}.pbf and a TileJSON 3.0.0 document, written by MapServer per request, with the same access rules as WMS and WFS. The Publishing tab shows a preview and the addresses. Checked with OpenLayers, MapLibre GL JS and deck.gl (docs/examples/vector-tiles/).
  • Tiles are gzip-compressed for clients that accept it (a dense building tile: 562 kB to 210 kB).
  • Client style: /api/v2/layers/{id}/mvt/style.json gives MapLibre and loka.gl one style document per layer (a template: flat, or buildings after OpenStreetMap’s Simple 3D Buildings tags). It is not a conversion of the layer’s SLD. Example SLD styles for OpenStreetMap layers are in docs/examples/styles/osm/.
  • 3D buildings: a polygon layer with height (and min_height) attributes is drawn as 3D blocks by MapLibre and deck.gl; convention and example pages in docs/examples/vector-tiles/.
  • /api/v2/layers/{id}/wcs (WCS 1.0, 1.1, 2.0) delivers the raster’s own values as GeoTIFF, without the style, including the file’s no-data value. The Publishing tab of a raster layer shows the addresses. A raster larger than 4096 cells on a side needs a subset or a scale in the request.
  • A new page 3D Tiles imports a finished OGC 3D Tiles tileset (1.0 or 1.1) as one ZIP archive and serves it to Cesium and other 3D clients, with the usual access rules and a public switch per tileset (off by default). Loka does not build tilesets.
  • The Metadata tab of a layer has an abstract and keywords. They appear in the WMS and WFS capabilities of the layer, where the title is now the display name (it was the WMS name). Renaming a layer updates the title; the WMS name and all addresses stay.
  • OGC Services page: XYZ tiles, 3D terrain, vector tiles and 3D Tiles are listed; WCS is shown as available instead of “planned”.
  • XYZ template on the Publishing tab of a layer and a layer group now has the usual {z}/{x}/{y} order (MapCache gmaps address). The earlier WMTS address keeps working. The TMS template says that its rows are counted from the south.
  • Console, loka.gl previews: loka.gl’s workers are now found (they answered 404 under /vendor/loka-gl/, so terrain decoding ran on the main thread).
  • Vector tiles are not cached in MapCache and have no per-layer settings.
  • The client style is a template; the layer’s SLD is not converted.
  • 3D Tiles are hosted as delivered; Loka does not build or convert tilesets.

1.2.0 — Elevation layers and loka.gl preview (2026-11-14)

Section titled “1.2.0 — Elevation layers and loka.gl preview (2026-11-14)”

Adds elevation layers built from DTED and a second preview client. Catalog schema v15 (from v13): two additive steps (two new tables, then one new column); no existing table, row or file changes.

  • Import: DTED level 0, 1 and 2 cells as a ZIP or a folder, or an elevation GeoTIFF that is converted to DTED cells. One layer holds many cells; the build runs in the background.
  • For 3D clients: the original DTED cells, Terrain-RGB tiles in Terrarium encoding (ellipsoidal heights by default, mean sea level as an option) and Cesium quantized-mesh terrain. terrain.json and a TileJSON 3.0 document describe what a layer offers.
  • For 2D clients: hillshade and coloured heights through WMS, cached tiles through MapCache (filled ahead after an import), and WCS (GetCapabilities, DescribeCoverage, GetCoverage).
  • Console: Elevation page with import, layer list, preview and service addresses.
  • Access: session or read-only API token by default; an administrator can make one layer public (off by default, audited).
  • Every preview offers OpenLayers or loka.gl in 2D and 3D. loka.gl is vendored, needs a WebGPU browser and shows the same WMS images; in 3D it drapes them on the terrain.
  • Allowed origins (CORS): an administrator sets which other origins may read the map services. Empty by default.
  • Map services without sign-in: one administrator switch that opens the read-only services (WMS, WFS, tiles, elevation) to everyone. Off by default, audited.
  • Not implemented for elevation layers: a job list with progress and cancel, the EGM96 geoid endpoint, point and profile queries, and adding cells to an existing layer (import again).
  • WCS is offered for elevation layers only, not for ordinary raster layers.
  • loka.gl is an evaluation build; OpenLayers stays the default preview.

Schema v13 → v15 needs deploy.ps1 -AllowMigration after a dry run on a copy of a fresh cold backup (see docs/OPERATIONS.md). An image of 1.1.0 cannot open a v15 catalog; the way back is the cold backup with the pre-<version> image.

Adds the display of S-57 electronic navigational charts (ENC) for monitoring and situational awareness. Loka is not an ECDIS and the display is not for navigation. Catalog schema v13 (from v10): three additive steps, no existing table, row or file changes. Packages built and tested on 2026-11-12.

  • Import: an exchange set ZIP or cell files (.000 with updates and CATALOG.031) become one chart, built in the background. Cancelled or damaged cells are left out and listed.
  • Display: S-52-derived presentation drawn by MapServer: lookup tables, symbols, line styles, area patterns, light sectors, safety contour, day / dusk / night palettes, usage bands chosen by display scale.
  • Console: ENC Charts page with import dialog, chart list, and per chart the tabs Preview (OpenLayers, display and text switches, mariner depths, hidden layers, presets), Style (palette and an editable JSON style file, applied without a new import), Cells and Access.
  • Services: WMS 1.1.1 GetMap per chart with validated settings (safety_contour, hide, preset, …); cached 256×256 tiles through MapCache, filled ahead after an import.
  • Access: session or read-only API token by default; an administrator can make one chart public (off by default, audited). API Tokens moved into the sidebar.
  • Display presets kept on the server.
  • The presentation files are not part of Loka: the operator puts the lookup table (OpenCPN s57data), the IHO S-101 Portrayal Catalogue and a font into enc-presentation/ in the data directory. Without the lookup table the feature reports that it is not configured.
  • S-63 (encrypted cells) is not supported.
  • Not implemented: depth contour labels, sounding digits at dangers, low-accuracy marks, topmarks of the paper chart table, GetFeatureInfo and GetCapabilities for charts.
  • A chart cannot be changed after import; import again to add cells or updates.
  • MapServer runs as long-lived FastCGI workers for ENC charts, with the CGI as fallback (LOKA_MAPSERV_FASTCGI=0 turns it off). Layers, groups and WFS are unchanged.
  • New command-line tool loka-enc (build, chart, preview) for development.

Schema v10 → v13 needs deploy.ps1 -AllowMigration after a dry run on a copy of a fresh cold backup (see docs/OPERATIONS.md). An image of 1.0.0 cannot open a v13 catalog; the way back is the cold backup with the pre-<version> image.

Docker bundle (loka.ps1 / loka.sh):

  • After an upgrade that migrates the catalog, the printed rollback now names the backup to restore (stop, set LOKA_VERSION back, restore). Before, it advised only setting LOKA_VERSION back, after which the old version stops with unsupported catalog schema.
  • restore stops the services before its safety backup, so it also works while the old API is restarting in a loop.

First release of Loka Server. The code is the same as internal build 2.13.0 (catalog schema v10). Changes compared with 2.13.0: the version number, the README, these release notes, the CI workflow name, the layer page no longer shows the empty Attributes placeholder tab, and the new packages listed below.

  • Windows: LokaServer-1.0.0-Setup.exe and LokaServer-1.0.0-x64.msi. A per-user install on top of Docker Desktop with Start menu entries (start and open, stop, status and setup code, backup). Uninstalling keeps the data volume, the settings and the backups.
  • Linux: loka-server_1.0.0_amd64.deb for Debian 13 and Ubuntu 24.04. Native systemd services loka and loka-mapcache (a private Apache MapCache on loopback), data in /var/lib/loka, settings in /etc/loka/loka.env, and loka-backup.
  • Docker: loka-server-1.0.0-docker.tar.gz / .zip with offline images and loka.sh / loka.ps1 (install, start, stop, backup, restore, upgrade). Known limitations are listed in README.md.
  • Catalog: workspaces with display name and stable service name; data stores scoped to a workspace or global; one store → many layers; layer groups; reusable SLD style library.
  • Import: GeoTIFF / BigTIFF, GeoPackage (several tables), Shapefile ZIP (documentation members ignored; traversal, symlinks, duplicates and decompression bombs rejected), direct SHP/SHX/DBF/PRJ.
  • PostGIS: connection form with tested connections. The password is stored only in LOKA_DATA_DIR/config/postgis/ (mode 0600). Live layers or snapshot copies with refresh.
  • Styles: CodeMirror 6 SLD 1.0 editor with templates, validation, formatting and import/export; separate draft and published revisions; side-by-side test preview.
  • Services: WMS 1.1.1 per layer and group (legend, GetFeatureInfo), read-only WFS 1.1/2.0 per layer and per workspace, WMTS / TMS / XYZ through MapCache with seed, reseed and purge jobs.
  • Security: CSRF-protected sessions, login throttling, reverse-proxy settings, admin / editor roles, per-workspace access, read-only API tokens, activity log with retention.
  • Operations: install, deploy (migration guard, automatic rollback), cold backup and restore scripts; automatic catalog backup before a schema migration.

Installations running internal build 2.13.0 upgrade with deploy.ps1 and no migration, because the schema is unchanged. The rollback tag is then pre-2.13.0. Older internal builds follow the migration procedure in docs/OPERATIONS.md.

Internal development builds (before 1.0.0)

Section titled “Internal development builds (before 1.0.0)”

The history of the 2.x builds is kept in Git (tags v2.8.1 … v2.13.0).

Build Main change
2.13.0 Schema v10: workspace access per user, API tokens, snapshot refresh
2.12.0 Workspace-wide WFS with several stores
2.11.x PostGIS connection form; deploy script; WFS geometry types; extent refresh
2.10.x Schema v9: live PostGIS layers
2.9.x Read-only WFS; layer group page; published-service tabs
2.8.x Schema v8 reusable file stores; login hardening; activity log; WMS name change; durable cache jobs