Merge branch 'upstream'
[routino] / web / data / create.sh
1 #!/bin/sh -x
2
3 # This script can download either from GeoFabrik or Cloudmade.
4
5
6 # EDIT THIS to set the names of the files to download.
7 files="europe/great_britain.osm.bz2 europe/ireland.osm.bz2 europe/isle_of_man.osm.bz2"
8
9 # Download the files
10
11 for file in $files; do
12    wget -N http://download.geofabrik.de/osm/$file
13 done
14
15
16 ## EDIT THIS to set the names of the files to download.
17 #files="europe/united_kingdom/united_kingdom.osm.bz2 europe/ireland/ireland.osm.bz2 europe/isle_of_man/isle_of_man.osm.bz2"
18 #
19 ## Download the files
20 #
21 #for file in $files; do
22 #   wget -N http://downloads.cloudmade.com/$file
23 #done
24
25
26 # Process the data
27
28 bunzip2 *.bz2
29
30 ../bin/planetsplitter *.osm