viking-gps / viking

Viking is a free/open source program to manage GPS data (inc GPX, FIT, TCX and KML files). You can import and plot tracks, routes and waypoints, show OpenStreetMaps (OSM), Bing Aerial and other maps, generate Mapnik maps, geotag images, make new tracks, routes and waypoints, see real-time GPS position, etc. It is written mostly in C with GTK
http://sourceforge.net/projects/viking/
GNU General Public License v2.0
216 stars 53 forks source link

Not all input is GPX these days #206

Open jidanni opened 7 months ago

jidanni commented 7 months ago

Man page says:

   -e, --external
      Load all specified GPX files in 'external' mode.

What about KML, etc.? Maybe above just remove the word "GPX".

rnorris commented 7 months ago

Actually due to the specifics of the implementation - this 'external' mode only works for GPX files.

Separately I have been thinking about making this work for any supported file type, but there is a little wrinkle I've yet to decide how to best proceed.

Currently this external mode loading is performed in the TrackWaypoint layer - which is OK for GPX files since they only have straight-forward geodata - tracks/routes/waypoints, whereas for KML, TCX and FIT files potentially have 'container' level grouping information - much like how Viking's Aggregate levels work.

This probably means I'll have to add the External file properties (as used in the TrackWaypoint layer) to the Aggregate layer as well.