Duplicate points in KML LineString output?

View: New views
2 Messages — Rating Filter:   Alert me  

Duplicate points in KML LineString output?

by Simon Dakin :: Rate this Message:

| View Threaded | Show Only this Message

Apologies if this has been covered before; I couldn't find a way to
search the mailing list archives so that is certainly possible.

I'm using Ubuntu which has been recently upgraded to 11.10 which has
gpsbabel version 1.42.

I've used gpsbabel in the past (possibly with a version prior to 1.42)
to very successfully download data from my Garmin Forerunner 305 and
load it into Google Earth using the KML format.

I now find that the KML LineStrings produced appear to have duplicate
coordinates.

Looking at the source in kml.c module kml_output_tailer there is a section:


      if (kml_altitude_known(tpt)) {
        kml_write_xml(0, COORD_FORMAT "," COORD_FORMAT "," ALT_FORMAT "\n",
                         tpt->longitude, tpt->latitude, tpt->altitude);
       } else {
         kml_write_xml(0, COORD_FORMAT "," COORD_FORMAT "\n",
                          tpt->longitude,
                          tpt->latitude);
       }
     if (kml_altitude_known(tpt))  {
      kml_write_xml(0, "%f,%f,%f\n", tpt->longitude, tpt->latitude,
                                     tpt->altitude);
     } else {
      kml_write_xml(0, "%f,%f\n", tpt->longitude, tpt->latitude);
     }

which would appear to be responsible.

Anyone else concur?

If this is the culprit would it be possible to correct? I'd prefer not
to have to build the package myself just for it to automagically
appear in the Ubuntu Update Manager because I'm lazy.

TIA,
Simon

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: Duplicate points in KML LineString output?

by Robert Lipe-4 :: Rate this Message:

| View Threaded | Show Only this Message



On Thu, Dec 1, 2011 at 4:49 AM, Simon Dakin <dakin80@...> wrote:
I now find that the KML LineStrings produced appear to have duplicate
coordinates.

Known bug in 1.42.  Fixed in the beta and thus the next release. 

which would appear to be responsible.

Anyone else concur?

Yep.  That's the code that's fixed. 

If this is the culprit would it be possible to correct? I'd prefer not
to have to build the package myself just for it to automagically
appear in the Ubuntu Update Manager because I'm lazy.

Ubuntu will presumably eventually pick up the fix.

RJL 

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc