QSRTM - Create elevation contour tiles from SRTM data

Download

qsrtm.tar.gz

Compilation

You need
- QT 4.6
- libcairo

Call:
- qmake
- make
or create the binary using QT Creator.

Call

qsrtm [-o outputDir] [-s srtmDir] [-m maxZoom] z_x_y[.png]

It computes all Contour tiles from zoom level 10 to level maxZoom (if z greater or equal 10).

Example:

qsrtm 10_548_344

10_548_344
Zoom: 10
11_1096_688
Zoom: 11
12_2192_1376
Zoom: 12
13_4384_2752.png
Zoom: 13

Toolchain

To compute all tiles of a region for a tile server, you can do the following steps.

region2tiles lon0 lat0 lon1 lat1 10 > tiles.dat
sh contours.sh < tiles.dat

with contours.sh:

#!/bin/sh
while read line
do
  qsrtm -o /var/www/htdocs/contour -s srtm $line
done
Jens Pönisch