Hi all,

Nice to hear QLandkarte now supports Ozi maps. However, besides maps.
Ozi has its own format for tracks (plt) and it would be useful to have
possibility to open such tracks directly in QLandkarte.

Plt files are supported by gpsbabel, so they can be opened in
the same way like KML and others. The patch attached can be used to
implement this.

--
Regards,
Denis.
Index: src/CMainWindow.cpp
===================================================================
--- src/CMainWindow.cpp	(revision 2716)
+++ src/CMainWindow.cpp	(working copy)
@@ -724,7 +724,7 @@
     QString formats;
     if(haveGPSBabel)
     {
-        formats = "All supported files (*.qlb *.gpx *.tcx *.loc *.gdb *.kml);;QLandkarte (*.qlb);;GPS Exchange (*.gpx);;TCX TrainingsCenterExchange (*.tcx);;Geocaching.com - EasyGPS (*.loc);;Mapsource (*.gdb);;Google Earth (*.kml)";
+        formats = "All supported files (*.qlb *.gpx *.tcx *.loc *.gdb *.kml *.plt);;QLandkarte (*.qlb);;GPS Exchange (*.gpx);;TCX TrainingsCenterExchange (*.tcx);;Geocaching.com - EasyGPS (*.loc);;Mapsource (*.gdb);;Google Earth (*.kml);;Ozi (*.plt)";
     }
     else
     {
@@ -890,6 +890,10 @@
             {
                 loadGPXData = convertData("kml", filename, "gpx", tmpfile.fileName());
             }
+            else if(ext == "PLT")
+            {
+                loadGPXData = convertData("ozi", filename, "gpx", tmpfile.fileName());
+            }
 
 
             if (!loadGPXData)
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to