GPXSee
GPXSee copied to clipboard
Add KMZ support?
kmz format is kml in a zip file
https://en.wikipedia.org/wiki/Keyhole_Markup_Language#Structure
The problem with KMZ it, that it would require a dependency on QuaZIP or at least zlib. And I'm still not convinced that KMZ support is worth doing so (although there is a another place in GPXSee where zip would be nice - the DEM files which are mostly distributed compressed using ZIP).
Maybe Qt6 could bring ZIP support (there is already an internal unzip class in Qt5...).
And I'm still not convinced that KMZ support is worth doing so
It would add support for Garmin Custom Maps (KMZ) map format (actually KMZ with some restrictions). SAS.Planet, OCAD, OpenOrienteering Mapper and some other tools have support for Garmin KMZ map export. Also worth mentioning MapRunF, that uses maps in KMZ format. So, it would be great if GPXSee could preview such maps.
Ok. Let's make really big changes for the 8.0 release :-). KMZ maps support is in d01a5a7e4281bc3afa6666871638e4c323ca809e. It uses the internal Qt implementation, but for Qt5 this is no more an issue as we now know that it won't change. For Qt6 we'll see...
KMZ support for data files will however have to wait until we see how the map works (it has also a much lower priority for me)
KMZ maps support is in d01a5a7.
I've tried to open KMZ map created by OpenOrienteering Mapper, but GPXSee terminated with:
QZip: .ZIP specification version 45 implementationis needed to extract the data.
This means that the file uses ZIP64 format extensions which are not supported by the Qt unzip class. Some info here https://github.com/nezticle/qtcompress/issues/1
I have tested KMZ maps generated by QGIS, MOBAC and "self-made" maps zipped with the standar system zip
command and none of them is using ZIP64 format extensions. So I think I can live with this limitation and those who can't can always repack the maps using zip (which according to the documentation uses the extensions only for files > 2GB).