[SCM] rel2gpx branch, master, updated. 3cec0df5e8a17742db51bbb76e947a815ffe51a8

Andreas Tille tille at debian.org
Thu Sep 12 20:52:18 UTC 2013


The following commit has been merged in the master branch:
commit 3cec0df5e8a17742db51bbb76e947a815ffe51a8
Author: Andreas Tille <tille at debian.org>
Date:   Thu Sep 12 22:51:45 2013 +0200

    Add two examples how to use this script to download networks of trails

diff --git a/debian/examples/get-harz-loipen b/debian/examples/get-harz-loipen
new file mode 100755
index 0000000..56ede06
--- /dev/null
+++ b/debian/examples/get-harz-loipen
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Fetch all cross country skiing routes in Harz
+id=253120
+
+DIR=`mktemp -d`
+cd $DIR
+rel2gpx -g -w $id 2> ${id}.err > ${id}.out
+grep "Sub-Relation:" ${id}.err | sed 's/^[[:space:]]\+Sub-Relation:[[:space:]]*//' > subroutes
+for id in `cat subroutes`; do
+  rel2gpx  -g -w $id 2> ${id}.err > ${id}.out
+done
diff --git a/debian/examples/get-harzklub-wege b/debian/examples/get-harzklub-wege
new file mode 100755
index 0000000..84ae64d
--- /dev/null
+++ b/debian/examples/get-harzklub-wege
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Fetch all hiking routes maintained by Harzklub e.V.
+id=2993062
+
+DIR=`mktemp -d`
+echo "Output will be available here: $DIR"
+cd $DIR
+rel2gpx -g -w $id 2> ${id}.err > ${id}.out
+grep "Sub-Relation:" ${id}.err | sed 's/^[[:space:]]\+Sub-Relation:[[:space:]]*//' > subroutes
+for id in `cat subroutes`; do
+  rel2gpx  -g -w $id 2> ${id}.err > ${id}.out
+done

-- 
create GPX-Tracks from OSM relation



More information about the Pkg-grass-devel mailing list