source: subversion/applications/editors/osm-editor/srtm.sh @ 16590

Last change on this file since 16590 was 459, checked in by nick, 14 years ago

New version of osmeditor and SRTM stuff added

  • Property svn:executable set to *
File size: 482 bytes
Line 
1#!/bin/bash
2# Script to generate SRTM contour tiles within a certain area
3
4starte=$1
5ende=$2
6startn=$3
7endn=$4
8scale=$5
9mode=$6
10step=$7
11
12if [ $mode -le 7 ]; then
13        hs='-r 1'
14fi
15
16n=$startn
17
18while [ $n -le $endn ]; do
19        n1=`printf %02d $n`
20        e=$starte
21        while [ $e -le $ende ]; do
22                e1=`printf %02d $e`
23                echo ${e1}0000 ${n1}0000 
24                ./srtm -e ${e1}0000 -n ${n1}0000 -s $scale -w 1000 -h 1000 ${hs} > data/tiles/mode${mode}/${e1}00${n1}00.png
25                let e=e+${step}
26        done
27        let n=n+${step}
28done
Note: See TracBrowser for help on using the repository browser.