Skip to main content

Welcome to gpx-kml-converter

Github CI Status GitHub release Read the Docs License GitHub issues PyPI

Welcome to the GPX KML Converter application, a versatile tool designed for processing geographical data files (GPX and KML). The application offers both an intuitive Graphical User Interface (GUI) and a robust command line interface for various file manipulation tasks.

Installation

Download from PyPI.

💾 For more installation options see install.

pip install gpx-kml-converter

Run GUI from command line

gpx-kml-converter-gui

Run CLI from command line

gpx-kml-converter --help

2. Main Features 🚀

2.1. Graphical User Interface (GUI) 🖥️

The application features a comprehensive GUI that simplifies the process of managing and processing your geographical data.

  • Dual File Lists: The GUI presents two distinct listboxes:

    • Input Files: Displays the files selected by the user for processing. 📁

    • Generated Files: Shows the output files produced after a successful processing operation. 📊

  • File Information at a Glance: Both listboxes display not only the file names but also their respective file sizes in kilobytes, providing immediate feedback on file changes (e.g., after compression). 📏

  • Interactive File Access: Files listed in both the input and generated file sections are clickable. Double-clicking a file will open it using your operating system's default application or launch the file explorer with the file selected. 🖱️📂

  • Integrated Logging: A dedicated log output area provides real-time feedback on application operations, warnings, and errors. Directory paths mentioned in the logs are clickable, allowing direct navigation to the output folders. 📝🔗

Getting started with the GUI

  1. Open files: Click Open Files (or File → Open…) and select GPX, KML, or ZIP files. They appear under Inputs; recently opened files are listed under File → Recent Files.
  2. Inspect: Select a file to view its track, route, and POI counts; the selection is shown on the map, and tracks also show an elevation profile.
  3. Process: Choose Compress Files, Merge Files, or Extract POIs from Tracks. A preview asks for confirmation before processing starts.
  4. Find the result: The completion summary shows how many files were processed and where; click the output path to open the containing folder.

For details, see the GUI documentation.

2.2. GPX/KML File Processing Capabilities 🗺️

The core strength of the application lies in its ability to handle GPX and KML files with several powerful processing modes:

  • Compression: Reduce the size of your track files by optimizing the number of track points and cleaning unnecessary metadata. 📉

  • Merging: Combine multiple GPX/KML files into a single, consolidated GPX file, ideal for creating continuous routes from fragmented data. ➕

  • POI Extraction: Automatically identify and extract the starting points of tracks and routes from your files, saving them as Waypoints (Points of Interest) in a new GPX file. 📍

3. Detailed Features 🔍

3.1. File Management 🗃️

  • Adding Input Files: Use the "Open Files" button or the "File -> Open..." menu option to select one or multiple GPX, KML, or even ZIP archives containing GPX/KML files. The application intelligently extracts and lists valid geographical data files. ➕📂

  • Removing Input Files:

    • "Remove Selected" Button: Select one or more files in the "Input Files" listbox and click this button to remove them from the processing queue. 🗑️

    • "Clear Input Files" Button: Remove all files from the "Input Files" list. 🧹

  • Clearing Generated Files: The "Clear Generated Files" button allows you to empty the output list, useful for managing the display after multiple processing runs. ✨

3.2. Processing Logic 🧠

  • Selective Processing: If you have selected specific files in the "Input Files" list, only those files will be processed when a "Compress," "Merge," or "Extract POIs" operation is initiated. If no files are selected, the application will process all files currently in the input list. ✅

  • Output Directory Management: Generated files are saved into a new directory, automatically named with a timestamp (e.g., gpx_processed_YYYY-MM-DD_HHMMSS), ensuring clean organization of your outputs. This directory path is explicitly logged and made clickable. 📁📅

3.3. Data Optimization ⚙️

The underlying processing engine includes sophisticated optimization techniques:

  • Douglas–Peucker Simplification: Compression and merging simplify each track segment with a configurable tolerance in meters (10 m by default), preserving segment boundaries and endpoints while limiting the geometric deviation. 🤏

  • Metadata Cleaning: Compression strips irrelevant metadata (e.g., time, extensions, comments, descriptions, symbols) from points, tracks, and routes to further reduce file size; merging preserves descriptions. 🧼

  • Elevation Adjustment:

    • The application attempts to integrate SRTM (Shuttle Radar Topography Mission) elevation data to correct or enhance elevation values in your tracks and waypoints. ⛰️

    • If SRTM data cannot be initialized (e.g., due to network issues or library unavailability), the application gracefully falls back to using the original elevation data present in the GPX/KML files or defaults to zero, ensuring continued functionality. Warnings are logged if SRTM is unavailable. ⚠️

3.4. Logging and Configuration 🚦

  • Real-time Logging: The "Log Output" pane provides detailed information about every operation, helping you monitor progress and troubleshoot issues. 🪵

  • Configurable Log Level: Adjust the verbosity of the log output (DEBUG, INFO, WARNING, ERROR, CRITICAL) directly from the GUI, allowing you to control the level of detail displayed. 🎚️

  • Settings Dialog: Access a comprehensive settings dialog from the "Options -> Settings" menu. Here, you can configure various application parameters, including the simplification tolerance, date formats, and other internal settings. Changes made here are saved to config.yaml for persistence across sessions. 🔧💾

4. Usage ▶️

To run the GUI application, execute the following command in your project's root directory:

Run with CLI from source

python -m gpx_kml_converter [OPTIONS] path/to/file.gpx path/to/file.kml

Run with GUI from source

python -m gpx_kml_converter.gui

Once the GUI is launched, you can:

  1. Open Files: Click "Open Files" to add GPX/KML files to the input list. ➕📁

  2. Select Files (Optional): Click on files in the input list to select them for specific processing. If no files are selected, all loaded input files will be processed. ✅

  3. Choose a Processing Mode: Click one of the processing buttons ("Compress," "Merge," "Extract POIs") to start the operation. ▶️

  4. Monitor Progress: Observe the log output and the progress bar. ⏳

  5. View Results: Check the "Generated Files" list for your processed outputs. Double-click an output file to open it or navigate to its containing directory. 🌟

Metadata

Release files for gpx-kml-converter 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpx-kml-converter 1.2.1
File Size Uploaded Provenance Actions
gpx_kml_converter-1.2.1.tar.gz 1.4 MB Without provenance Details for gpx_kml_converter-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpx-kml-converter 1.2.1
File Interpreter ABI Platform Actions
gpx_kml_converter-1.2.1-py3-none-any.whl Python 3 none any Details for gpx_kml_converter-1.2.1-py3-none-any.whl

Total release size: 1.4 MB

Release files / gpx_kml_converter-1.2.1.tar.gz

Download URL gpx_kml_converter-1.2.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
8cc98dfe50f5b8eb9d13eb26f3ca70f00ee40f2e8456d154f7f9d98b5753e0cb
BLAKE2b-256 checksum
How to use checksums
f8bd9035802c11d12e2218ceb59bd108f6b0265e0334235f3f430b3e8fb9f6f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / gpx_kml_converter-1.2.1-py3-none-any.whl

Download URL gpx_kml_converter-1.2.1-py3-none-any.whl
Size 54.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da19e6aac3dada21b391dbc7bac2205183908fc33cb412544bd55c18b105435c
BLAKE2b-256 checksum
How to use checksums
5df53c16f2a94721d7b9e8ce546d055c1d9ee3c82319f5be6341aa3e6f51cbb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for gpx-kml-converter 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page