Hikingbook.pl/Process

From OpenStreetMap Wiki
Jump to navigation Jump to search

Step by step to your hikingbook

  • find out route ID or NAME or REF
  • provide osm file (it is important to provide a file that contains the whole tour AND all other information that is needed to draw complete maps around that area, especially complete multipolygons. To achieve this you can use osmosis with --bounding-box options completeWays=yes and completeRelations=yes.)
  • however the file should not contain too much things not needed. otherwise the output files will become very large.
osmosis -rx big.osm --bounding-box completeWays=yes completeRelations=yes left=8 right=9 bottom=50 top=51 -wx small.osm
  • create step descriptions (create a simple text file route16steps.txt with one line per step. Each line contains the step number and a space, then the description for this step.)
1 Gute Verbindung nach Frankfurt, Niedernhausen, Wiesbaden
24 Hier kann ein Abstecher zum Meisterturm in östliche Richtung gemacht werden
35 Hier führt ein Weg östlich nach Lorsbach herunter
  • create tour description route16desc.tex
\section*{Erster Teil der Tour}
Der erste Teil der Tour führt uns vom Hofheimer Bahnhof nordwestlich Richtung Kapellenberg. Westlich des Kapellenbergs geht es im Lorsbacher Tal Richtung Norden.
\section*{Zweiter Teil der Tour}
Der zweite Teil der Tour führt westlich am Lorsbacher Kopf vorbei, dann hinauf zur Gundelhard. Hier Einkehr.
  • call hikingbook.pl (everything in ONE line!)
perl hikingbook.pl -in=hessen.osm -out=Route16.pdf -title="Taunusklub Route 16" -reverse\\
-poi=2 -desc=route16desc.tex -steps=route16steps.txt -name="Taunusklub Route 16" -language=DE

Result

  • Route16.pdf