Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QgsVectorLayerExporter: defer GPKG spatial index creation at file clo…
…sing Should fix the issue raised in https://lists.osgeo.org/pipermail/qgis-developer/2020-October/062422.html The difference with QgsVectorFileWriter is that QgsVectorFileWriter does not close and re-open the layer, so the defered spatial index creation mechanism that is built-in in the GPKG driver works. But in the case of QgsVectorLayerExporter, we close and re-open and thus the spatial index gets created immediately.
- Loading branch information
1 parent
501c63f
commit d8c6a25
Showing
3 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters