debian/0000755000000000000000000000000012231275116007166 5ustar debian/watch0000644000000000000000000000026712231275116010224 0ustar version=3 opts=uversionmangle=s/^(0)(\d\d)$/$1.$2/ \ http://blog.velocarte66.fr/?q=de/node/170 \ (?:|.*/)rel2gpx(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) debian/copyright0000644000000000000000000000163712231275116011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Rainer Unseld Source: http://blog.velocarte66.fr/?q=de/node/170 Files: * Copyright: © 2009-2013 Rainer Unseld License: GPLv3 Files: debian/* Copyright: © 2013 Andreas Tille License: GPLv3 License: GPLv3 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian you can find a copy of the General Public License at /usr/share/common-licenses/GPL-3. debian/rel2gpx.man0000644000000000000000000000267712231275116011262 0ustar Bedienung Aufruf: rel2gpx {optionen} {Relation-Id} Parameter und Optionen: Relation-Id Id der zu bearbeitenden Relation. Siehe auch Option -f -i datei Lese OSM-Daten aus lokaler Datei. Wenn diese Option nicht angegeben wird, dann werden die Daten von openstreetmap.org geladen -x datei schreibe eine XML-Datei im osm-Format, welche die Daten aller Objekte der Relation enthält (nur zusammen mit -i). -r typ Bearbeite alle Relationen mit type=route und route=typ (nur zusammen mit -i). Mögliche Werte für typ: bicycle, hiking, train. -f datei Lese Relation-Ids aus der Datei (nur zusammen mit -i). In der Textdatei kann pro Zeile eine Id angegeben werden. Zeilen, die mit "#" beginnen, werden nicht ausgewertet. Auch in den Datenzeilen können Kommentare eingefügt werden. -g Erzeuge eine GPX-Trackdatei -p Aktiviere die Ausgabe diverser Plausibilitätsprüfungen -s Aktiviere Statistikausgaben auf STDOUT -w Ausgabe von Statistikdaten und Plausibilitätshinweisen in eine HTML-Datei -o Berücksichtigen der Fahrtrichtung (oneway, forward/backward). Der Name der GPX- und HTML-Datei wird aus dem Namen der Relation in der OSM-Datenbank gebildet. Existiert dieser nicht, wird die Relation-Id als Name verwendet. Bei Verwendung der Optionen -f oder -i wird der Dateiname aus dem Namen der Relationsliste bzw. der Osm-Datei gebildet. debian/manpages0000644000000000000000000000001312231275116010676 0ustar debian/*.1 debian/changelog0000644000000000000000000000101312231275116011033 0ustar rel2gpx (0.27-1) unstable; urgency=low * New upstream version (all patched incorporated) * debian/watch: Adapted to new upstream version, thanks to Bart Martens for the patch * debian/examples/get-jakobswege-in-deutschland: New usage example * New upstream homepage -- Andreas Tille Sun, 20 Oct 2013 21:06:17 +0200 rel2gpx (0.26-1) unstable; urgency=low * Initial release (Closes: #723724) -- Andreas Tille Thu, 12 Sep 2013 21:34:03 +0200 debian/source/0000755000000000000000000000000012231275116010466 5ustar debian/source/format0000644000000000000000000000001412231275116011674 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212231275116010364 0ustar 9 debian/rules0000755000000000000000000000030512231275116010244 0ustar #!/usr/bin/make -f pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p') %: dh $@ override_dh_install: mkdir -p debian/$(pkg)/usr/bin cp -a $(pkg).pl debian/$(pkg)/usr/bin/$(pkg) debian/rel2gpx.10000644000000000000000000000366512231275116010645 0ustar .TH REL2GPX "1" "September 2013" "rel2gpx usage" "User Commands" .SH NAME rel2gpx \- create GPX-Tracks from OSM relation .SH SYNOPSIS .B rel2gpx [\fIoptions\fR] <\fIrelation\-Id\fR> .SH DESCRIPTION This script can download GPX tracks from a given OSM relation to feed it to your GPS device. Most relations are not ordered in one single line. The script tries to bring all parts into a reasonable order. .SH OPTIONS .IP Relation\-Id .IP OSM Id of the to be exported relation. See also pption \fB\-f\fR .HP \fB\-i\fR file .IP Read OSM\-data from local file. If this option is missing data will be fetched from openstreetmap.org .HP \fB\-x\fR file .IP write XML\-file in osm\-format, which contains the data of all objects of the relation (only in connection with \fB\-i\fR). .HP \fB\-r\fR typ .IP Work on all relations of type=route and route=typ (only in connection with \fB\-i\fR). Possible values for typ: bicycle, hiking, train. .HP \fB\-f\fR file .IP Read relation\-Ids from file (only in connection with \fB\-i\fR). The text file can contain one Id per line. Lines starting with "#" will be ignored. You can also add comments to data lines. .HP \fB\-g\fR .IP Create a GPX track file. .HP \fB\-p\fR .IP Enable output of various plausibility checks. .HP \fB\-s\fR .IP Enable statistics output to STDOUT .HP \fB\-w\fR .IP Output statistics and plausibility checks into HTML file .HP \fB\-o\fR .IP Respect directions (oneway, forward/backward). .IP The name of the GPX and HTML file will be created from the name of the relation inside the OSM database. If this does not exist the relation\-Id will be used as name. When using options \fB\-f\fR or \fB\-i\fR the name will be created from the relation list or the OSM-file respectively. .SH "SEE ALSO" Homepage is only in German: http://mr-unseld.de/?q=de/node/170 .SH AUTHOR This manual page was written by Andreas Tille for the Debian distribution but can be freely used for any other purpose. debian/control0000644000000000000000000000156012231275116010573 0ustar Source: rel2gpx Section: utils Priority: optional Maintainer: Debian GIS Project Uploaders: Andreas Tille Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://blog.velocarte66.fr/de/node/277 Vcs-Git: git://anonscm.debian.org/pkg-grass/rel2gpx.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/rel2gpx.git Package: rel2gpx Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libwww-perl, libio-stringy-perl, libxml-perl, libmath-complex-perl, libosm-gary68-perl Description: create GPX-track from OSM relation This script can download GPX tracks from a given OSM relation to feed it to your GPS device. Most relations are not ordered in one single line. The script tries to bring all parts into a reasonable order. debian/examples/0000755000000000000000000000000012231275116011004 5ustar debian/examples/get-harz-loipen0000755000000000000000000000047012231275116013740 0ustar #!/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 debian/examples/get-harzklub-wege0000755000000000000000000000055212231275116014260 0ustar #!/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 debian/examples/get-jakobswege-in-deutschland0000755000000000000000000000047112231275116016532 0ustar #!/bin/sh # Fetch all cross country skiing routes in Harz id=3235848 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