Specific .kml fail produces empty .gpx output

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

Parent Message unknown Specific .kml fail produces empty .gpx output

by JimD-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, first-time poster to this mailing list, but I'm a long-time user of GPSBabel.

The other day a KML-->GPX conversion stumped me. A co-worker was getting ready to visit Puerto Rico, and I found a Google-Map with 150+ waypoints I thought he might want. I exported the KML file from Google-Earth, but GPSBabel produces an output with no waypoints at all in GPX or GDB (Garmin) format. Even tried various csv versions with no luck.

The "Chinchorrospr.kml" file is attached. I'm guessing it's using some kind of network linking to create the waypoints, but regardless of that I'd just like to get the waypoints onto my or my friend's Garmin nuvi.

Any ideas how to translate this? Thanks in advance!

- Jim in Austin, TX

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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

Chinchorrospr.kml (497 bytes) Download Attachment

Re: Specific .kml fail produces empty .gpx output

by Khai Mong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your given kml file is essentially empty.   There are no points in it.


On Wed, Oct 28, 2009 at 5:18 PM, JimD <d3zapped@...> wrote:
Hi, first-time poster to this mailing list, but I'm a long-time user of GPSBabel.

The other day a KML-->GPX conversion stumped me. A co-worker was getting ready to visit Puerto Rico, and I found a Google-Map with 150+ waypoints I thought he might want. I exported the KML file from Google-Earth, but GPSBabel produces an output with no waypoints at all in GPX or GDB (Garmin) format. Even tried various csv versions with no luck.

The "Chinchorrospr.kml" file is attached. I'm guessing it's using some kind of network linking to create the waypoints, but regardless of that I'd just like to get the waypoints onto my or my friend's Garmin nuvi.

Any ideas how to translate this? Thanks in advance!

- Jim in Austin, TX
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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: Specific .kml fail produces empty .gpx output

by Matt McClelland-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jim

You are trying to a network link.  Expecting a little to much from the GPSbabel to get the data from the link

Try downloading the data from the link


This will give you a KML with data.  A better starting point for you.

Hope you friend has a good holiday

Matt :)

Matt McClelland
0411 306 650
matt@...
www.wildwalks.com


On Thu, Oct 29, 2009 at 8:18 AM, JimD <d3zapped@...> wrote:
Hi, first-time poster to this mailing list, but I'm a long-time user of GPSBabel.

The other day a KML-->GPX conversion stumped me. A co-worker was getting ready to visit Puerto Rico, and I found a Google-Map with 150+ waypoints I thought he might want. I exported the KML file from Google-Earth, but GPSBabel produces an output with no waypoints at all in GPX or GDB (Garmin) format. Even tried various csv versions with no luck.

The "Chinchorrospr.kml" file is attached. I'm guessing it's using some kind of network linking to create the waypoints, but regardless of that I'd just like to get the waypoints onto my or my friend's Garmin nuvi.

Any ideas how to translate this? Thanks in advance!

- Jim in Austin, TX
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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: Specific .kml fail produces empty .gpx output

by JimD-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the responses everyone!

Khai - you said my kml file is "essentially empty". I grant you that it may use some kind of network indirection, but there are in fact scores of waypoints visible when I reload the link I attached yesterday. [Tried to attach a screenshot, but it's rejected as too large]

Phil - I saved two of the Waypoints to "My Places", moved them to a test-folder, exported to kml, used GPSBabel to translate to Garmin gdb format. Worked just fine, but the problem is that there are so darned many points it would take hours to translate the complete waypoint list. Since Google Earth doesn't complain about whatever is going on inside the kml file, I naively expected GPSBabel to handle it as well.

Matt - you wrote "Expecting a little to much from the GPSbabel to get the data from the link" and provided another link for me to try. That link gave me the same (empty) results on translation - did it work for you or was it just a possible suggestion? Sorry if I'm missing something obvious.

- Jim

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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: Specific .kml fail produces empty .gpx output

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To clarify what's going on here.   We confess in our doc ( http://www.gpsbabel.org/htmldoc-development/fmt_kml.html ) that KML can express all kinds of stuff that GPSBabel (indeed, many KML readers) simply can't consume.  For example if you look at your first file in its entirety, you'll see that it contains:

$ cat Chinchorrospr.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<NetworkLink>
    <name>Chinchorrospr</name>
    <open>1</open>
    <Link>
        <href>http://maps.google.com/maps/ms?vps=2&amp;jsv=182b&amp;ie=UTF8&amp;hl=en&amp;oe=UTF8&amp;msa=0&amp;msid=115026781176083416413.00045ee199276a7f579f0&amp;output=kml</href>
    </Link>
</NetworkLink>
</kml>

Even if angle brackets make your head hurt, you can see that it doesn't contain "scores of waypoints"; it contains a Network link that, when fetched over the network, resolves to a KML file that contains scores of points.

GPSBabel really can't handle the task of fetching network links like that.  If you do it manually and save that resulting KML to a file (as Phil suggested)  you get a file we can successfully read; we see 350 points in that file.

Long ago, I started a project to integrate libkml that would help with things like that, recursive style resolution, and many other "KML-isms" that are just plain difficult.    While it offered a lot of interesting features, the combination of C++ and code size (both of which I'm pretty much over) and other distractions meant that I never really finished it and integrated it.

So for now, you have to manually untangle Network links and do the fetch yourself before feeding them to GPSBabel.

RJL


On Thu, Oct 29, 2009 at 11:56 AM, JimD <d3zapped@...> wrote:
Thanks for the responses everyone!

Khai - you said my kml file is "essentially empty". I grant you that it may use some kind of network indirection, but there are in fact scores of waypoints visible when I reload the link I attached yesterday. [Tried to attach a screenshot, but it's rejected as too large]

Phil - I saved two of the Waypoints to "My Places", moved them to a test-folder, exported to kml, used GPSBabel to translate to Garmin gdb format. Worked just fine, but the problem is that there are so darned many points it would take hours to translate the complete waypoint list. Since Google Earth doesn't complain about whatever is going on inside the kml file, I naively expected GPSBabel to handle it as well.

Matt - you wrote "Expecting a little to much from the GPSbabel to get the data from the link" and provided another link for me to try. That link gave me the same (empty) results on translation - did it work for you or was it just a possible suggestion? Sorry if I'm missing something obvious.

- Jim

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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