1

i have a vector layer with geometry type PointGeometry and styled with QgsGraduatedSymbolRendererV2 renderer.

i have tried:

QgsVectorFileWriter.writeAsVectorFormat(layer,"kml_example.kml","utf-8",None,"KML")

but it only exports points i.e. without colors.

How can i export this vector layer as KML output with colors?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.