Skip to content
/ kml2gpx Public

Simple command line script to convert KML file to GPX

License

Notifications You must be signed in to change notification settings

narfel/kml2gpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kml2gpx

Simple command line script to convert KML file to GPX

Description

Convert KML file containing a path to a GPX file. It looks for a LineString and extracts the coordinates. If multiple paths are present the first one is used

Installation

~$ git clone https://github.com/narfel/kml2gpx.git
~$ cd kml2gpx
~$ pip install kml2gpx .

Since it is just a simple script, you can also just grab the app.py file from the src folder and run it with "python app.py [input_file.kml]"

Dependencies

None

How to use

kml2gpx input_file.kml [YYYY-MM-DD]

Windows

As "Open with" target:

You can use it as "Open with" target by right clicking a kml file and providing the binary as path. When installed via pip the binary will be located usually in %APPDATA%\Python\Scripts.

As a batch file:

Create a file kml2gpx.bat with the content below and drag and simply drop the kml onto it:

@echo off
python "<path to script>\app.py" %*
pause

License

Copyright (c) 2023 Narfel

Usage is provided under the MIT License. See LICENSE for the full details.

About

Simple command line script to convert KML file to GPX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages