forked from poutnikl/Brouter-profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Brouter_wget_segments_CZ.sh
56 lines (48 loc) · 1.49 KB
/
Brouter_wget_segments_CZ.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# ***********************************************************************
# *
# * Ported from Windows batch for automated Brouter segment file download
# https://raw.githubusercontent.com/poutnikl/Brouter-profiles/master/Brouter_wget_segments_CZ.cmd
# *
# * Usage:
# *
# *
# * Set segmentdownloadfolder variable to the local folder of your choice
# * where the rd5 file are to be stored
# *
# * For each segment tile of interest put below the command line
# * getrd5file <longitude> <latitude>
# * e.g.
# * getrd5file E10 N45 download grid segment file E10_N45.rd5
# *
# * Files are downloaded only if they do not exist locally or if newer than local ones.
# *
# *
# ***********************************************************************
websegments=http://brouter.de/brouter/segments4
segmentdownloadfolder=~/Downloads/segments4
function getrd5file {
# %1 = lon E5,E10, %2=lat
wget -N --limit-rate=1M $websegments/$1_$2.rd5
}
# ***********************************************************************
# * This is example download job set I use
# * It downloads nonexistent or newer files
# ***********************************************************************
cd $segmentdownloadfolder
getrd5file E0 N40
getrd5file E0 N45
getrd5file E5 N40
getrd5file E5 N45
getrd5file E5 N50
getrd5file E10 N40
getrd5file E10 N45
getrd5file E10 N50
getrd5file E15 N40
getrd5file E15 N45
getrd5file E15 N50
getrd5file E15 N40
getrd5file E20 N45
getrd5file E20 N50
getrd5file E5 N35
getrd5file E5 N40