forked from OpenMetroMapsData/new-format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert-from-old-to-new.sh
executable file
·117 lines (91 loc) · 3.81 KB
/
convert-from-old-to-new.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/bin/bash
OMM_CLI=~/"github/OpenMetroMaps/OpenMetroMaps/java/scripts/openmetromaps-cli"
OMM_DATA=~/"github/OpenMetroMapsData"
OMM_NEW=~/"github/OpenMetroMapsData/new-format"
set -e
# Berlin
mkdir -p "$OMM_NEW/berlin"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/berlin/geographic.omm" \
--output "$OMM_NEW/berlin/geographic.xml"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/berlin/schematic.omm" \
--output "$OMM_NEW/berlin/schematic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/berlin/geographic.omm" \
--output "$OMM_NEW/berlin/geographic-straight.xml"
"$OMM_CLI" new-format create -segment-mode straight \
--input "$OMM_DATA/berlin/schematic.omm" \
--output "$OMM_NEW/berlin/schematic-straight.xml"
# VBB
mkdir -p "$OMM_NEW/vbb-regio"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/vbb-regio/geographic.omm" \
--output "$OMM_NEW/vbb-regio/geographic.xml"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/vbb-regio/schematic.omm" \
--output "$OMM_NEW/vbb-regio/schematic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/vbb-regio/geographic.omm" \
--output "$OMM_NEW/vbb-regio/geographic-straight.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/vbb-regio/schematic.omm" \
--output "$OMM_NEW/vbb-regio/schematic-straight.xml"
# Vienna
mkdir -p "$OMM_NEW/vienna"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/vienna/geographic.omm" \
--output "$OMM_NEW/vienna/geographic.xml"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/vienna/schematic.omm" \
--output "$OMM_NEW/vienna/schematic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/vienna/geographic.omm" \
--output "$OMM_NEW/vienna/geographic-straight.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/vienna/schematic.omm" \
--output "$OMM_NEW/vienna/schematic-straight.xml"
# Stuttgart
mkdir -p "$OMM_NEW/stuttgart"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/stuttgart/sbahn-schematic.omm" \
--output "$OMM_NEW/stuttgart/schematic.xml"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/stuttgart/sbahn-geographic.omm" \
--output "$OMM_NEW/stuttgart/geographic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/stuttgart/sbahn-schematic.omm" \
--output "$OMM_NEW/stuttgart/schematic-straight.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/stuttgart/sbahn-geographic.omm" \
--output "$OMM_NEW/stuttgart/geographic-straight.xml"
# BART
mkdir -p "$OMM_NEW/bart"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/bart/schematic.omm" \
--output "$OMM_NEW/bart/schematic.xml"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/bart/geographic.omm" \
--output "$OMM_NEW/bart/geographic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/bart/schematic.omm" \
--output "$OMM_NEW/bart/schematic-straight.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/bart/geographic.omm" \
--output "$OMM_NEW/bart/geographic-straight.xml"
# Managua
mkdir -p "$OMM_NEW/managua"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/managua/geographic.omm" \
--output "$OMM_NEW/managua/geographic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/managua/geographic.omm" \
--output "$OMM_NEW/managua/geographic-straight.xml"
# Gueret
mkdir -p "$OMM_NEW/gueret"
"$OMM_CLI" new-format create \
--input "$OMM_DATA/gueret/geographic.omm" \
--output "$OMM_NEW/gueret/geographic.xml"
"$OMM_CLI" new-format create --segment-mode straight \
--input "$OMM_DATA/gueret/geographic.omm" \
--output "$OMM_NEW/gueret/geographic-straight.xml"