Translate posts to Experimental | Feedback
Google
Official Google Earth Download Site
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
Previous Topic
View All Topics Index
Next Topic
#120919 - 09/06/05 05:55 PM Free KML to GPX Converter (KML2GPX.exe) *****
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
Here is my free utility to convert KML to GPX.

It is freeware and comes without any guarantee or support. It works for me and you are welcome to use it and share it.

The source code is included (I slapped it together quickly and crudely, so don't judge my code).

You are free to report bugs, but I make no promises...

I hope it works for you,

Derek Rosen
Phoenix, AZ

P.S. There where various postings on this topic, so I started a new one so as not to have to upload it many times.


=== UPDATE 09/10/05 ===
This link includes version 1.2
Fixed limitation / bug reported by cybarber on 09/10/05


Attachments
101188-KML2GPX.zip (29383 downloads)
Preview this file with the Google Earth Plugin (learn more)


Edited by DerekRosen (09/10/05 05:08 PM)

Top
#120920 - 09/07/05 02:04 AM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: DerekRosen]
jayhasbi Offline
Traveler

Registered: 06/14/04
Posts: 18
Loc: Malaysia
Wonderful. I have tried it and conversion of my kmls came out clean and easily imported into GIS app. Thanks a lot Derek.

Top
#120921 - 09/07/05 07:39 AM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: jayhasbi]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
You are welcome.

I did find some difficulty importing the gpx files into Garmins MapSource. MapSource is very picky and will not open the more complex gpx files. It is probably the sort order of the XML nodes.

I plan to fix this soon, but there is a work around for now. Open the gpx file in EasyGps (http://EasyGps.com/) and just save it. This corrects the formatting. EasyGps is good and free.

Top
#120922 - 09/07/05 08:20 PM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: DerekRosen]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
New version 1.1

Fixed bug where formatting was not valid for Garmin MapSource or other products that perform strict schema validation.

Derek Rosen

=== UPDATE 09/10/05 ===
Version 1.2 available from main post


Edited by DerekRosen (09/10/05 05:13 PM)

Top
#120923 - 09/09/05 03:22 PM Free GPX utility to swap name and description [Re: DerekRosen]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
This is strictly not related to the KML discussion, but relevant to anyone importing GPX files that have short / meaningless names but good descriptions.

This free utility simply swaps the <name> tags with <desc> tags allowing you to easily import into GE.

Enjoy,

Derek Rosen


Attachments
105811-GPXSwap.zip (1144 downloads)
Preview this file with the Google Earth Plugin (learn more)

Top
#120924 - 09/10/05 04:39 AM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: DerekRosen]
cybarber Offline
Traveler

Registered: 07/02/05
Posts: 119
Loc: Gulpen, Netherlands
Hi Derek,

Guess you have to get back to the drawing table.
Below is what I got:

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<gpx
version="1.1"
creator="KML2GPX"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 [url=http://www.topografix.com/GPX/1/1/gpx.xsd">]http://www.topografix.com/GPX/1/1/gpx.xsd">[/url]
<metadata>
<name>Cybarber trail</name>
<desc>Cybarber trail</desc>
<link href="http://www.garmin.com">
<text>Garmin International</text>
</link>
</metadata>
<wpt lat="50.81595" lon="1relativeToGround5.89003">
<name>wylre 002.JPG</name>
</wpt>


It seems your proggie puts all child elements content of the Point element into one:

<Point>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>5.89003,50.81595,0</coordinates>
</Point>


Good luck,

Cybarber


Edited by cybarber (09/10/05 09:45 AM)

Top
#120925 - 09/10/05 12:49 PM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: cybarber]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
I put the program together very quickly and took many sort-cut. I did not intend to cover all possibilities. The utility was intended for my needs, Im just sharing it with others

I dont use that relativeToGround stuff, but when I have time, I will either patch the code or do it the correct way (select the <coordinates> sub-node).

Derek Rosen

Top
#120926 - 09/10/05 05:15 PM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: cybarber]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
See main post for update and version 1.2.

Derek Rosen

Top
#120927 - 09/15/05 01:14 PM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: DerekRosen]
Sirous_Nekooei Offline
World Explorer

Registered: 07/10/05
Posts: 344
Loc: Mashhad, Iran
Sound good, but it wont work on my computer. I tried it on a few other computers (all with XP) and it didn't work. When I click on the exe file, an error message appears. A picture of the meesage is in the attachment.

I hope you can fix it.

rgds,
Sirous


Attachments
113221-error.zip (1003 downloads)
Preview this file with the Google Earth Plugin (learn more)

Top
#120928 - 09/16/05 08:33 AM Re: Free KML to GPX Converter (KML2GPX.exe) [Re: Sirous_Nekooei]
DerekRosen Offline
Traveler

Registered: 09/06/05
Posts: 13
Loc: Phoenix, AZ
I'm not sure why it is not working for you.

It does require the Microsoft .NET framework, but this should already be part of Windows XP. You can always check that you have it and / or install it from Microsoft.

The following link tells you how to check that it is installed and how to install it if not:
.net framework


Is anyone else having this problem?


Derek

Top
Page 1 of 2 1 2 >