You should try rebuild the SpatialIndex. Spatialite offers gpkgAddSpatialIndex for a new Index.
For its own format there are repair functions.
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
