Uh oh!
There was an error while loading. Please reload this page.
Conversation
dg0yt
left a comment
There was a problem hiding this comment.
The Template::isRasterGraphics() property does not match hybrid templates.
Uh oh!
There was an error while loading. Please reload this page.
dg0yt
commented
Dec 12, 2020
Works with Ubuntu 18.04 (against distribution packages). |
d5a7d2c to
b3b9fafComparedg0yt
commented
Dec 16, 2020
Now correctly rendering and exporting KMZ files with groundoverlay raster tiles (JPG, 300 dpi, 512 px). Verified with Google Earth. Should work with MapRunF. |
21b1c01 to
3c9502fCompareHaving the driver name available is useful for extra processing hooks.
Provide a simple API for GDAL's virtual file systems (/vsizip/, /vsicurl/ etc.).
In order to allow for non-Qt file system paths such as GDAL's virtual file systems (/vsizip/, /vsicurl/ etc.), make the file lookup functions virtual and reimplement them in GDAL template classes.
Factor out fields processing, and handle them once per feature, even before clipping. This moves fields processing out of the object loop, and it makes them available for additional hooks before clipping the features and modifying the map.
a670236 to
df7b518Comparea5614cc to
0a6304eCompareEnable loading and displaying of child templates. This is the base for dealing with hybrid and multi-file formats, such as KMZ files which embed raster tiles.
This change enables viewing KML files with raster tiles linked as GroundOverlay icons by turning them into GDAL raster template. KMZ files with embedded raster images are supported, too. This feature requires the LIBKML vector driver in GDAL.
Allow calling drawPage with a different transform, e.g. oriented to true north.
Add export of KML/KMZ ground overlay files, based on MapPrinter's page drawing and GDAL's vsizip virtual file system. Other than our existing output variant (raster, PDF, printing), KML needs raster images oriented to true north. Formally, this is a "KML" export, with "KMZ" being a zipped variant. Following populer recognition and usage, we prefer labelling as "KMZ". ResolvesGH-138 (KMZ export).
Eric-P-Kmz
commented
Feb 19, 2021
Hi, I participate in the development of the free Vikazimut application. Is it possible to do a kmz export of the same format as that of OCAD in OOM (with a single image in the export)? |
dg0yt
commented
Feb 21, 2021
Before adding more code and UI to care for the limitations of Vikazimut, did you consider extending Vikazimuth to handle tiles? Anyway, it is possible and not too hard to do add an KMZ export with a single raster image instead of tiles. It might come with a simple option to choose the tile size ("256x256", "512x512", "No tiles"). |
dg0yt
commented
Feb 24, 2021
@Eric-P-Kmz Does the attached file work for you? It contains a KMZ of the complete map example. |
Eric-P-Kmz
commented
Feb 25, 2021
This format is perfect for Vikazimut. |
dg0yt
commented
Feb 25, 2021
Merci beaucoup. I'm looking into simple course files right now. |
This is a proof-of-concept exploring the feasibiliy of:
OgrFileImportinto creating child templatesOgrTemplate(TemplateMap) to display child templatesWith GDAL's LIBKML driver (available in Linux distro's GDAL, but not yet in our Superbuild), this allows for viewing KMZ files as used by MapRunF, as created following:
http://maprunners.weebly.com/maps---kmz-files.html
via
http://www.p.fne.com.au/rg/cgi-bin/o-utils.cgi
It could be used to complement a future MapRunF compatible KMZ export.
With Mapper loading such files as a map, and already being able to export geospatial vector data, it is also possible to open a KMZ file, draw a single path object for a course, and export as KML. However, I didn't test if this works with MapRunF.