reverse filter produces invalid xml

Bug #1328316 reported by whitis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gpsbabel (Ubuntu)
Undecided
Unassigned

Bug Description

Download KML file from here: http://goo.gl/maps/gIhT3

gpsbabel -t -i kml -f TDV2014A.kml -x track,faketime=20100101000001+1 -x track,pack -o gpx -F faketime.gpx

gpsbabel -t -i gpx -f faketime.gpx -x track,start=20100101000001,stop=20100101000038 -o kml,points=0,points=0 -F tdv2014_day1_AB.kml

gpsbabel -t -i kml -f tdv2014_day1_AB.kml -x reverse -o kml,points=0 -F tdv2014_day1_BA.kml
Workaround:
perl -p -i -n -e "s/<MultiGeometry>/<MultiGeometry><LineString><coordinates>/" tdv2014_day1_BA.kml

Also note that this filter non-consensually separates into multiple paths, apparently because of duplicate track points.

Another possible workaround is to use a duplicate filter.

Also: Program also non-consensually inserts flags at each data point on track unless you go out of your way to prevent it using -o kml,points=0, which isn't even an option on some formats .

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gpsbabel 1.4.2-3
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
CheckboxSubmission: 1e1a99f31ec2933306456e1f141c45d8
CheckboxSystem: edda5d4f616ca792bf437989cb597002
Date: Mon Jun 9 20:17:46 2014
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gpsbabel
UpgradeStatus: Upgraded to precise on 2013-03-03 (463 days ago)

Revision history for this message
whitis (whitis) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers