-
Notifications
You must be signed in to change notification settings - Fork 18
/
Brouter_wget_segments_CZ.cmd
61 lines (52 loc) · 1.74 KB
/
Brouter_wget_segments_CZ.cmd
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
57
58
59
60
61
@echo off
rem ***********************************************************************
rem *
rem * Windows batch for automated Brouter segment file download
rem *
rem * Usage:
rem *
rem * Get and install Wget for windows from link below, if not done yet.
rem * Set Wget variable to pathname of wget.exe
rem *
rem * Set segmentdownloadfolder variable to your choice
rem * If needed in future, modify rest of variables
rem *
rem * For each segment tile of interest put below the command line
rem * call :subwget <longitude> <latitude> [b]
rem * call :subwget E10 N45 b download grid segment file
rem * call :subwget E10 N45 downloads nothing
rem *
rem * Files are downloaded only if not exist locally or if newer than local ones.
rem *
rem * Wget for Windows can be obtained here..
rem * http://gnuwin32.sourceforge.net/packages/wget.htm
rem *
rem ***********************************************************************
set wget=S:\utils\GnuWin32\bin\wget.exe -N
set websegments=http://brouter.de/brouter/segments4
set segmentdownloadfolder=s:\downloads\segments4
rem ***********************************************************************
rem * This is example download job set I use
rem * It downloads nonexistent or newer files
rem ***********************************************************************
call :subwget E0 N40
call :subwget E0 N45
call :subwget E5 N40
call :subwget E5 N45
call :subwget E5 N50
call :subwget E10 N45 b
call :subwget E10 N50 b
call :subwget E15 N45 b
call :subwget E15 N50 b
call :subwget E15 N40
call :subwget E20 N45
call :subwget E20 N50
call :subwget E5 N35
call :subwget E5 N40
pause
exit /b
:subwget
rem %1 = lon E5,E10, %2=lat
cd /D %segmentdownloadfolder%
if "%3"=="b" %wget% %websegments%/%1_%2%.rd5
exit /b