Demo workspace
One workspace, Demo, that shows every feature of Loka Server with freely redistributable data, and a check that every item in it is served.
| Feature | In the Demo workspace |
|---|---|
| Raster import, WMS, WCS | Sentinel-2 Sunda Strait, ESA WorldCover 2021 land cover of Bogor (also used by route and reach) |
| Vector import (GeoPackage, Shapefile ZIP), WFS, vector tiles | OSM buildings Jakarta (with heights for 3D), OSM roads and land use of Bogor (land use in UTM 48S), vessel positions, roads as a Shapefile |
| Layer metadata | abstract and keywords on the buildings |
| Layer group, WMTS, Tile Cache | Bogor base (land cover, land use, roads) |
| Military map products | CADRG, ADRG, USRP and NITF layers; the VMap0 SASAUS library as a GeoPackage store with five published tables (optional) |
| MIL-STD-2525 | unit symbols with labels and a legend; a tactical scenario (defence of the west coast of Java: FEBA, phase line, boundary, FSCL, axes, assembly areas, battle position, engagement area, objective) drawn from control points, which WFS serves |
| Elevation and 3D terrain | Copernicus GLO-30 Bogor: hillshade WMS, WCS, Terrarium and Quantized Mesh |
| ENC (S-57, S-52 drawing) | NOAA overview cell US1GLBAA (not for navigation) |
| S-63 encrypted ENC | the same cell as an S-63 test set with made-up keys, decrypted with its permit (test hardware id 1A2B3, set in compose.demo.yml) |
| OGC 3D Tiles | Bandung demo city (imported); Jakarta OSM buildings built on the server from their heights |
| Weather (GRIB) | NOAA GFS / GFS-Wave forecast for Java, 16 time steps: temperature, wind with arrows, precipitation, waves; WMS TIME |
| Aeronautical (AIXM 5.1) | made-up Jakarta message: airspaces, aerodromes, navaids, reporting points, obstacles, routes with ICAO chart symbols; Jakarta aeronautical chart, a layer group over VMap0 sea and land of Java |
| Terrain analysis (saved) | slope, contours, viewshed, airspace coverage, range rings, UTM grid, road buffer, points to tracks, density |
| Analysis workbench | every tool runs on the Demo elevation layer |
The licence of every file is in ATTRIBUTION.md inside the package.
Build the package
Section titled “Build the package”python distributions/demo/make_demo_package.py --geodata <folder> --version 1.6.0<folder> holds the public source files; the layout is listed at the top of the script.
fetch_osm.py downloads the OSM roads and land use (Overpass API) and make_tactical_scenario.py
writes the tactical scenario; the ESA WorldCover window is read with GDAL from the public
cloud-optimized tile (gdal_translate -projwin 106.72 -6.45 106.92 -6.65 /vsicurl/…/ESA_WorldCover_10m_2021_v200_S09E105_Map.tif). The
output is dist/loka-demo-data-<version>.zip (about 70 MB). fetch_weather.py downloads the NOAA
forecast into weather/; the Java sea and land are cut from VMap0 with
ogr2ogr -spat 103 -9.5 110 -4 -clipsrc spat_extent (tables oceansea_bnd_area, polbnda_bnd_area). The VMap0 library (228 MB) is not put
in the package; pass it to the loader with --vmap0.
Load it into a server
Section titled “Load it into a server”Set the account in the environment (the password is never printed), then:
python distributions/demo/load_demo.py http://127.0.0.1:8080 --package dist/loka-demo-data-1.6.0.zip [--vmap0 sasaus.zip]On a fresh server, add --setup-code CODE (from <data directory>/config/setup.code) to create the
first administrator from LOKA_DEMO_USER and LOKA_DEMO_PASSWORD. Running it again skips what is
already there.
ENC charts need the S-52 presentation files on the server (<data directory>/enc-presentation/,
see docs/OPERATIONS.md section 7). They are not part of Loka Server or of this package.
Check it
Section titled “Check it”python distributions/demo/check_demo.py http://127.0.0.1:8080Read-only. It asks every item for its service output (WMS, WFS, vector tiles, WCS, MIL-STD-2525 legend, layer group WMS and WMTS, ENC WMS, elevation WMS/WCS/terrain, 3D Tiles, a MapCache tile) and runs profile, line of sight, viewshed and route without saving.
A demo instance beside other installations
Section titled “A demo instance beside other installations”compose.demo.yml runs one on port 18090 with its own volume (loka-demo-data); the commands are
at the top of the file.