Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /branches/destination-access/extras/statistics/update.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1957 - (show annotations) (download) (as text)
Fri Sep 21 17:29:51 2018 UTC (6 years, 5 months ago) by amb
File MIME type: text/x-sh
File size: 3324 byte(s)
Merge from trunk.  Also update tagging for 'destination' access.

1 #!/bin/sh
2 #
3 # OSM data statistics shell script
4 #
5 # Part of the Routino routing software.
6 #
7 # This file Copyright 2008-2016, 2018 Andrew M. Bishop
8 #
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU Affero General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU Affero General Public License for more details.
18 #
19 # You should have received a copy of the GNU Affero General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #
22
23 set -e
24
25 trap "rm binned.dat" 0
26
27 # Database location and zoom - PARAMETERS THAT CAN BE EDITED
28
29 database_dir="../../web/data"
30 zoom=13
31
32 # Run the dumper
33
34 ./dumper --speed=32,48,64,80,96,112 --dir=$database_dir --zoom=$zoom > binned.dat
35
36 # Generate the base map
37
38 ./create-basemap.pl
39
40 # Generate the highway outputs
41
42 ./create-image.pl highway motorway 0 < binned.dat
43 ./create-image.pl highway trunk 1 < binned.dat
44 ./create-image.pl highway primary 2 < binned.dat
45 ./create-image.pl highway secondary 3 < binned.dat
46 ./create-image.pl highway tertiary 4 < binned.dat
47 ./create-image.pl highway unclassified 5 < binned.dat
48 ./create-image.pl highway residential 6 < binned.dat
49 ./create-image.pl highway service 7 < binned.dat
50 ./create-image.pl highway track 8 < binned.dat
51 ./create-image.pl highway cycleway 9 < binned.dat
52 ./create-image.pl highway path 10 < binned.dat
53 ./create-image.pl highway steps 11 < binned.dat
54 ./create-image.pl highway ferry 12 < binned.dat
55
56 # Generate the transport outputs
57
58 ./create-image.pl transport foot 13 < binned.dat
59 ./create-image.pl transport horse 14 < binned.dat
60 ./create-image.pl transport bicycle 15 < binned.dat
61 ./create-image.pl transport wheelchair 16 < binned.dat
62 ./create-image.pl transport moped 17 < binned.dat
63 ./create-image.pl transport motorcycle 18 < binned.dat
64 ./create-image.pl transport motorcar 19 < binned.dat
65 ./create-image.pl transport goods 20 < binned.dat
66 ./create-image.pl transport HGV 21 < binned.dat
67 ./create-image.pl transport PSV 22 < binned.dat
68
69 # Create the property outputs
70
71 ./create-image.pl property paved 23 < binned.dat
72 ./create-image.pl property multilane 24 < binned.dat
73 ./create-image.pl property bridge 25 < binned.dat
74 ./create-image.pl property tunnel 26 < binned.dat
75 ./create-image.pl property foot-route 27 < binned.dat
76 ./create-image.pl property bicycle-route 28 < binned.dat
77 ./create-image.pl property cycle-both-ways 29 < binned.dat
78 ./create-image.pl property oneway 30 < binned.dat
79
80 # Generate the speed limit outputs
81
82 ./create-image.pl speed 20mph 31 < binned.dat
83 ./create-image.pl speed 30mph 32 < binned.dat
84 ./create-image.pl speed 40mph 33 < binned.dat
85 ./create-image.pl speed 50mph 34 < binned.dat
86 ./create-image.pl speed 60mph 35 < binned.dat
87 ./create-image.pl speed 70mph 36 < binned.dat
88
89 # Tidy up and exit
90
91 # This is handled by the trap at the top
92 #
93 #rm binned.dat

Properties

Name Value
svn:executable *