# Erstellt mit einer stark modifizierten Version von gpx2svg.
# Relationsdaten-Download mittels e. g. rel2gpx
#sudo apt-get install rel2gpx
if [ ! -f ./rel2gpx.no.child.rels ]; then
sed -e '/elsif.*type.*relation/ s,relation,unused:\0,' $(which rel2gpx ) \
> ./rel2gpx.no.child.rels
chmod +x ./rel2gpx.no.child.rels
fi
if [ ! -d 3m ]; then
for f in 62366 62467 62504 62607 62650 62771 62774 62775 2145268 435516 435511
do ./rel2gpx.no.child.rels -g $f
done
fi
# geographische Regionen z.B. mit JOSM vereinfachen (3m Fehler ist Standard)
# und im Unterverzeichnis 3m/ abspeichern
for f in 1729735 2776056
do rel2gpx -g $f
done
# Streckenteile der letzten GPX-Datei separieren, in dt. bzw. tschech. Teil
# (GPX dieser Relationen alternativ von cycling.waymarkedtrails.org beziehbar)
if [ ! -f gpx2svg.py ]; then
wget -qO - 'https://de.wikipedia.org/wiki/Benutzer:Cmuelle8/gpx2svg.py' \
| sed -e '1,/<pre>/d' -e '/<.pre>/,$d' -e 's/>/>/g' -e 's/</</g' -e 's/ / /g' \
> gpx2svg.py
chmod +x gpx2svg.py
fi
if [ ! -f gpx2svg-ict.py ]; then
cp -a gpx2svg.py gpx2svg-ict.py
patch gpx2svg-ict.py <<"EOF"
--- gpx2svg.py
+++ gpx2svg-ict.py
@@ -490,6 +490,14 @@
'two gpx files: area and main path styles ..\n' + \
'one input gpx: only area styles is applied'
)
+ cmdArgParser.add_argument('-slict', '--locator-map-styles-ict', dest = 's',
+ metavar = 'STYLE', action = "store_const", const =
+ [ 'fill:#FDFBEA;fill-rule:evenodd;stroke-width:1.2;stroke:#646464;stroke-opacity:1.0;' for i in range(11) ]
+ + [ 'fill:none;stroke-width:7.2;stroke:#E0939B;stroke-opacity:1.0;' + addsp ] # contextual path (soft red)
+ + [ 'fill:none;stroke-width:9.6;stroke:#C12838;stroke-opacity:1.0;' + addsp for i in range(2) ], # main path
+ help = 'Use styles preset: mimic "locator map" used by wikipedia.org, needs\n' + \
+ '11 area gpx files, 1 contextual input gpx, 2 input gpx for main path style - in order.'
+ )
cmdArgParser.add_argument('-st', '--trivial-krgb-map-styles', dest = 's',
metavar = 'STYLE', action = "store_const", const = [
'fill:none;stroke-width:1.0;stroke:#000000;stroke-opacity:1.0;',
EOF
fi
python3 ./gpx2svg-ict.py -c $(for f in 3m/*gpx ; do echo -i $f z ; done) \
-i eurovelo-13-eiserner-vorhang-route-de-cz-within-cz.gpx d \
-i eurovelo-13-eiserner-vorhang-route-de-cz-within-de.gpx d \
-i eurovelo-13-eiserner-vorhang-route-innerdeutscher-teil.gpx d \
-slict > 'Positionskarte des Iron Curtain Trail (ICT) und EuroVelo 13 (EV13) in Deutschland beziehungsweise Tschechien.svg'