Author Topic: 4.6: Plot GPS Logs error  (Read 5341 times)

Offline msbc

  • Newcomer
  • *
  • Posts: 43
    • View Profile
4.6: Plot GPS Logs error
« on: January 31, 2009, 05:14:13 PM »
Trying the GPS functions in 4.6. I load a GPX file (one I've used with other GPS apps like HoudahGeo and GPSPhotoLinker) and select the 'Plot GPS Logs' button. I get an error warning "Log status: parse error.". Tried with multiple GPX files all produce this error.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: 4.6: Plot GPS Logs error
« Reply #1 on: January 31, 2009, 05:40:48 PM »
Trying the GPS functions in 4.6. I load a GPX file (one I've used with other GPS apps like HoudahGeo and GPSPhotoLinker) and select the 'Plot GPS Logs' button. I get an error warning "Log status: parse error.". Tried with multiple GPX files all produce this error.

We're aware of this one.  I have fixed it and the next beta will have the fix.  If you want to edit your gpx files you can make a simple change to them and Photo Mechanic will work with them.  The Photo Mechanic beta you have at this time expects the 'gpx' tag to be formatted like so:

<gpx xmlns...

So if yours looks like this:

<gpx
  version="1.0"
  creator="GPSBabel - http://www.gpsbabel.org"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.topografix.com/GPX/1/0"
  xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">

change it to look like this:

<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  version="1.0"
  creator="GPSBabel - http://www.gpsbabel.org"
  xmlns="http://www.topografix.com/GPX/1/0"
  xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">

Then it should work.

-Kirk

Offline rgolub

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: 4.6: Plot GPS Logs error
« Reply #2 on: February 22, 2009, 04:43:29 PM »
Kirk:

I have a Garmin Oregon 400 and I've copied the top of the gpx file below.  I also get the parser error, but here it seems that the GPS is declaring it correctly???

---------------------xml babble follows---------------------------

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" creator="Oregon 400t" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtension/v1/TrackPointExtensionv1.xsd"><metadata><link href="http://www.garmin.com"><text>Garmin International</text></link><time>2009-02-23T00:31:01Z</time></metadata><wpt lat="57.057819" lon="-135.308121"><ele>39.78</ele><time>2009-02-22T20:23:52Z</time><name>001</name><desc>22-FEB-09 11:23:52AM</desc><sym>22-FEB-09 11:23:52AM</sym></wpt><wpt lat="57.075402" lon="-135.288901"><ele>106.83</ele><time>2008-11-09T22:14:32Z</time><name>CC DAM</name><desc>09-NOV-08 1:14:32PM</desc><sym>09-NOV-08 1:14:32PM</sym></wpt><trk><name>Current Track: 15 NOV 2008 10:53</name><trkseg><trkpt lat="57.077398" lon="-135.354942"><ele>138.09</ele><time>2008-11-15T19:53:30Z</time></trkpt><trkpt lat="57.077497" lon="-135.354718"><ele>138.09</ele><time>2008-11-15T19:53:45Z</time></trkpt><trkpt lat="57.077475"

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: 4.6: Plot GPS Logs error
« Reply #3 on: February 22, 2009, 06:35:44 PM »
Kirk:

I have a Garmin Oregon 400 and I've copied the top of the gpx file below.  I also get the parser error, but here it seems that the GPS is declaring it correctly???

---------------------xml babble follows---------------------------

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" creator="Oregon 400t" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtension/v1/TrackPointExtensionv1.xsd"><metadata><link href="http://www.garmin.com"><text>Garmin International</text></link><time>2009-02-23T00:31:01Z</time></metadata><wpt lat="57.057819" lon="-135.308121"><ele>39.78</ele><time>2009-02-22T20:23:52Z</time><name>001</name><desc>22-FEB-09 11:23:52AM</desc><sym>22-FEB-09 11:23:52AM</sym></wpt><wpt lat="57.075402" lon="-135.288901"><ele>106.83</ele><time>2008-11-09T22:14:32Z</time><name>CC DAM</name><desc>09-NOV-08 1:14:32PM</desc><sym>09-NOV-08 1:14:32PM</sym></wpt><trk><name>Current Track: 15 NOV 2008 10:53</name><trkseg><trkpt lat="57.077398" lon="-135.354942"><ele>138.09</ele><time>2008-11-15T19:53:30Z</time></trkpt><trkpt lat="57.077497" lon="-135.354718"><ele>138.09</ele><time>2008-11-15T19:53:45Z</time></trkpt><trkpt lat="57.077475"

Does the file not have any line endings?  It needs to have line endings.

-Kirk

Offline rgolub

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: 4.6: Plot GPS Logs error
« Reply #4 on: February 23, 2009, 01:17:02 AM »
Yes, it appears to have a valid xml ending:


on="-135.296927"><ele>52.05</ele><time>2009-02-22T23:20:22Z</time></trkpt><trkpt lat="57.048937" lon="-135.296906"><ele>52.05</ele><time>2009-02-22T23:20:25Z</time></trkpt><trkpt lat="57.049165" lon="-135.296363"><ele>52.05</ele><time>2009-02-22T23:20:55Z</time></trkpt></trkseg></trk></gpx>

I just didn't dump the entire file.

Any ideas why it doesn't work?  Of course, I can send you the file if you'd like.