Your message dated Sun, 10 May 2020 17:51:09 +0200
with message-id <[email protected]>
and subject line Re: Bug#960202: rel2gpx: add ROLE to gpx outfile
has caused the Debian Bug report #960202,
regarding rel2gpx: add ROLE to gpx outfile
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
960202: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960202
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rel2gpx
Tags: patch
Severity: minor
Version: 0.27-2

Hi,

for my usecase I need the role of elements to be present in the gpx,
so I added them as type. Please see the patch below in case it's
usefull for anyone else (and of course, if another gpx tag is more
appropriate, please use that one).


Regards,
Andi


diff --git a/rel2gpx.pl b/rel2gpx.pl
index b4a4fb7..5997554 100755
--- a/rel2gpx.pl
+++ b/rel2gpx.pl
@@ -1373,7 +1373,9 @@ EOF
          if ($way->isOneway){
             $trkName .= "_Oneway";
          }
-         print OUTFILE "<trk>\n<name>".$trkName."</name>\n<trkseg>\n";
+         print OUTFILE "<trk>\n<name>".$trkName."</name>\n";
+         print OUTFILE "<type>".$way->{ROLE}."</type>\n" if $way->{ROLE};
+         print OUTFILE "<trkseg>\n";
          for (my $k = 0; $k < $way->nodes; $k++){
             my $lat = $way->lat($k);
             my $lon = $way->lon($k);

--- End Message ---
--- Begin Message ---
On 5/10/20 4:44 PM, Andreas Barth wrote:
> Package: rel2gpx
> Version: 0.27-2

rel2gpx has been removed from Debian:

 https://tracker.debian.org/news/1046398/removed-027-4-from-unstable/

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

--- End Message ---

Reply via email to