[QGIS-Developer] Difference between QgsVectorFileWriter and QgsOgrProvider when creating gpkg?
Nyall Dawson
nyall.dawson at gmail.com
Sat Oct 17 22:35:11 PDT 2020
On Sat, 17 Oct 2020 at 20:02, Even Rouault <even.rouault at spatialys.com> wrote:
>
> 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
Thanks Even!
Just for my own curiosity, is there some logic in GDAL which defers
the spatial index creation on the immediate first use of a newly
created geopackage layer?
Nyall
>
> 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