1

I have several separate layers with various styling. I would like to export them in the KMZ format but as one file. A similar problem was raised here:

Exporting multiple shapefile layers from QGIS3 to one KMZ file and here

How to export multiple Shapefiles to one KML file in QGIS?

To be honest I am not convinced about merging the layers yet in QGIS as well as zipping them first and merging later.

I've tried to use the layer2kmz plugin, but it seems to export just one layer. Moreover, it doesn't tolerate the rule-based styling. Anyhow the result in Google Earth looks nice:

enter image description here

I tried a different way by saving my job as the geo package layer, then by using

https://mygeodata.cloud/converter/geopackage-to-kmz

the MyGeodata cloud converter I was able to combine all the layers, although without styling at all.

Is there any way to export multiple layers from QGIS to KMZ format without losing the styling?

1 Answer 1

1

Exporting one layer to KMZ without losing the styling works very fine if I use mmqgis.

As it says in the tool's description, it is accessible with Python. So it must be possible to export all your layers with a script. I did not try this though.

3
  • MMQGIS exports nice KML files I agree, but it's the KML export NOT KMZ.
    – Geographos
    Commented Dec 9, 2021 at 15:26
  • Easy workaround. Add kml to Google Earth and then save as kmz?
    – John
    Commented Dec 9, 2021 at 17:43
  • Yes, It's a good workaround but not necessarily for 20+ layers. Is there something, i.e. Python could do?
    – Geographos
    Commented Sep 13, 2022 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.