[QGIS-Developer] Difference between QgsVectorFileWriter and QgsOgrProvider when creating gpkg?

Even Rouault even.rouault at spatialys.com
Sat Oct 17 03:02:29 PDT 2020


Hi Nyall,

> But I can't explain this. In both cases the resultant gpkg has a
> spatial index. Does anyone know why one of the methods is so much
> slower than the other? (And ultimately, can we fix
> QgsVectorLayerExporter so it uses the same fast approach!)

Candidate fix and explanations at:
https://github.com/qgis/QGIS/pull/39439

Note that I haven't given this more than unit testing, but given what you 
mentionned, I'm rather confident this should fix the issue.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the QGIS-Developer mailing list