QMS_SURFACEDB(1) QMS_SURFACEDB(1)

qms_surfacedb - build a QMapShack surface database from an OpenStreetMap extract

qms_surfacedb [-n|--name <name>] [-q|--quiet] source target

Reads the roads and paths of an OpenStreetMap extract (.osm.pbf) and writes them with their surface and way type into a surface database (<name>.surface.sqlite). Put the database into one of the paths set up in QMapShack's "Create Surface Database" tool. QMapShack then shows the surfaces and way types of every track it covers.

This is the same as the "Create Surface Database" tool of qmapshack(1), without the GUI, e.g. for a script that also builds the Routino databases.

Displays the help.
Displays the version.
The name of the region shown in QMapShack. Default: the target file name up to the first dot.
No progress output.

The OpenStreetMap extract, e.g. belgium-latest.osm.pbf from download.geofabrik.de.
The database file to write, e.g. Belgium.surface.sqlite. An existing file is replaced only when the new database is complete.

0 on success, 1 on an error, which is printed to standard error.

qmapshack(1)

qms_surfacedb was written by Gert Pellin <gert@pellin.be>.

Oct 2026