Skip to content
LocusQ

OSM PBF in, PMTiles out

TileGen runs Planetiler in Docker to build an OpenMapTiles basemap and a 3D overlay from an OSM PBF, and can seal both into encrypted .lqtiles. The host needs only Docker and bash.

Maps

0.3.0Free + Pro

01What it does

Two PMTiles artefacts per build

<name>-base.pmtiles uses the OpenMapTiles 3.16 profile at zoom 0–14, with render_height on buildings for 3D. <name>-overlay.pmtiles adds enriched 3D buildings and trees at zoom 13–14. The PBF can come from pg2osm or a Geofabrik extract.

bash
bin/locusq-tilegen all     --pbf data/some.osm.pbf --name some   # base, then overlay (unless overlay.enabled is false)
bin/locusq-tilegen basemap --area <geofabrik-name>               # OMT basemap, PBF fetched from Geofabrik

Seal tiles for Pro

secure reads one 32-byte key from LOCUSQ_STORAGE_KEY, never from a flag, a config file or an archive, and writes .lqtiles. verify --kind sealed decrypts the archive and compares it with the open source.

bash
bin/locusq-tilegen secure  output/some-base.pmtiles output/some-base.lqtiles --storage-key-id <label>
bin/locusq-tilegen verify  output/some-base.lqtiles --kind sealed --source output/some-base.pmtiles --sample all

Checked output, safe re-runs

verify checks structure, layers and the exact zoom range, and writes a size report per layer and zoom. An existing output that passes pmtiles verify is skipped unless you pass --force.

bash
bin/locusq-tilegen verify  output/some-base.pmtiles --kind basemap

02Install

Run TileGen yourself

  1. Get access

    The repositories and packages are private while LocusQ is in private release. Ask for access and say which tools you need.

  2. Build the image

    The image builds on first use. Its cargo fetch step needs an SSH agent with access to the private locusq-core repository; the image keeps no key.

    bash
    docker build --ssh default --target runtime -t locusq-tilegen:local .
  3. Build tiles for an area

    Pass a Geofabrik area name, or --pbf with a file you already have. bin/locusq-tilegen --help lists every flag.

    bash
    bin/locusq-tilegen basemap --area <geofabrik-name>

Build tiles for your area

The guide covers the subcommands, the storage key and safe re-runs.