2.3 KiB
GPXtoCNXConverter
This is a Python app for converting .GPX files to .CNX files. It allows you to export your tracks and waypoints (POI's). It also supports bulk conversion of multiple .GPX files. The app includes a tool for editing POI types, allowing appropriate icons to be used for POI's on the bike computer.
- CNX is a GIS data file format used by iGPSPORT GPS sport devices.
- GPX is an XML based format for GPS tracks.
Data
The GPX2CNX tool in the app exports the following GPX data to the CNX file:
Track name from GPX tags.
Trackpoints:
- Latitude
- Longitude
- Elevation
Waypoints (POI's):
- Latitude
- Longitude
- Name
The app also calculates the following data based on the coordinates (features of the format and devices where it is used):
- Distance
- Ascent
- Descent
- Trackpoint count
- Waypoint count
The POI TYPES EDITOR tool in the app allows you to assign POI's to 23 supported icon types:
- Waypoint
- Sprint Point
- HC Climb
- Level 1 Climb
- Level 2 Climb
- Level 3 Climb
- Level 4 Climb
- Supply Point
- Garbage recycle area
- Restroom
- Service Point
- Medical Aid Station
- Equipment Area
- Shop
- Meeting Point
- Viewing Platform
- Instagram-Worthy Location
- Tunnel
- Valley
- Dangerous Road
- Sharp Turn
- Steep Slope
- Intersection
Run & Troubleshoot
This uses built-in Python libraries. To run on Python for Linux and older versions of Python for Windows, you may need to install tkinter module for Windows and python3-tk for Linux.
Nuitka is used to build the .exe file in the releases. Python applications packaged to .exe with various tools often trigger antivirus alerts.
Usage
Run the main.py script or gnx2cnx.exe (from the release) to start the GUI. Select the tool in the app for converting or changing POI types.
GPX2CNX Tool
Browse and open your files. The converted files will be placed in the same directory as the original files, in a subfolder called 'cnx_routes'.
POI TYPES EDITOR Tool
Select the desired CNX file. All POI's from the track will be loaded with names and types. For each point, you can select the desired type from the dropdown menu. When you're done, click "Save All".
Features
Converted files have names like 'route_original_file_name'. The part 'original_file_name' is truncated to 18 characters for better compatibility with bike computers.