TairuDB connects QGIS to the Tairu Maps app (iOS / Android).
It provides a dockable panel for two-way synchronisation with your Tairu Maps account
and a Processing algorithm (Tairu > TairuDB) for generating .tairudb
offline-map packages from any QGIS project.
Tairu Maps is a collaborative mobile mapping app for
field use. It supports offline maps, real-time location sharing, geo-referenced records,
and direct integration with QGIS data. The .tairudb file is the native format
for importing offline maps into Tairu Maps.
Click the TairuDB toolbar button or go to Plugins > TairuDB to open the dock panel. From there you can:
.tairudb raster packages and
load them as raster layers via MBTiles..tairudb raster for a chosen area and upload it directly to a selected map.The classic Processing algorithm is still available for scripting and batch use. Go to Processing > Toolbox, expand the Tairu group and run TairuDB.
.tairudb file to your device and import it in Tairu Maps.| Parameter | Description |
|---|---|
| Area of interest (polygon) | Polygon vector layer. Each feature generates an independent region. |
| Map resolution | Sets the maximum zoom level (see table below). |
| Image format | PNG (lossless), JPG or WebP. JPG and WebP produce smaller files. |
| Quality | Compression quality for JPG/WebP (1–100). Default: 90. |
| Vector layers to export | (Optional) Vector layers to include, with QGIS colour and JSON attributes. |
| Output file | Path for the generated .tairudb file. |
| Resolution | Zoom | Typical use |
|---|---|---|
| Very High (0.5 m/px) | 18 | Floor plans, survey detail |
| High (1 m/px) | 17 | Urban areas, trails |
| Medium-High (2 m/px) | 16 | Neighbourhoods, parks |
| Medium (4 m/px) | 15 | Small towns |
| Medium-Low (8 m/px) | 14 | Municipalities |
| Low (16 m/px) | 13 | Regions |
| Very Low (32 m/px) | 12 | States / overview |
geopdf_converter.py converts GeoPDF files to
.tairudb, extracting the raster background as tiles and vector geometries as
layers. Requires GDAL, pyproj and QGIS Python libraries.
python geopdf_converter.py input.pdf output.tairudb [options]
A .tairudb file is a SQLite3 database with the following tables:
| Table | Contents |
|---|---|
metadata | General settings (format, zoom, centre, version) |
regions | Geographic regions with bounds and zoom levels |
tiles_region_N | TMS raster tiles per region (PNG, JPG or WebP) |
vector_layers | Exported vector layers (point, line, polygon) |
features | Features with geometry, style and JSON attributes |
Full schema details in TAIRUDB_SCHEMA.txt.
| Version | Changes |
|---|---|
| 2.0 | Tairu Maps dock with Firebase login (e-mail, Google, Apple); pull records as editable GeoPackage layers and .tairudb files as raster; push vector layers as records with diff preview; wizard to generate and upload .tairudb rasters directly to a map |
| 1.2.1 | Support for QGIS 4 |
| 1.2 | Multi-region support; vector layer export with JSON attributes; automatic tile retry; WebP support; dry-run mode for estimating tile count and file size |
| 1.1 | GeoPDF converter; rendering performance improvements |
| 1.0 | Initial release: raster tile generation for Tairu Maps |
Repository: github.com/DanielHSMartin/tairu_db
Tairu Maps: tairumaps.com