Hi Ale,

> https://qgis.org/pyqgis/master/core/QgsJsonExporter.html?highlight=json#module-QgsJsonExporter

didn't know this class, thanks!

The correct way to use it is something like:

gl = QgsJsonExporter(vl, 6)
gl.exportFeatures([i for i in vl.getFeatures()])

and then write the final geojson file "manually"?

Thanks!

Matteo
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to