Skip to content

Commit

Permalink
[OGR provider] Fix opening /vsizip//path/to/my.zip/my.gpkg files
Browse files Browse the repository at this point in the history
This actually works around an issue in current GDAL versions where the
NOLOCK=YES open option does not work with /vsizip/ files
  • Loading branch information
rouault authored and nyalldawson committed Dec 12, 2022
1 parent ce56631 commit 0d71dc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/providers/ogr/qgsogrproviderutils.cpp
Expand Up @@ -992,6 +992,7 @@ GDALDatasetH QgsOgrProviderUtils::GDALOpenWrapper( const char *pszPath, bool bUp
bool bIsGpkg = QFileInfo( filePath ).suffix().compare( QLatin1String( "gpkg" ), Qt::CaseInsensitive ) == 0;
const bool bIsLocalGpkg = bIsGpkg &&
IsLocalFile( filePath ) &&
!filePath.startsWith( "/vsizip/" ) &&
!CPLGetConfigOption( "OGR_SQLITE_JOURNAL", nullptr ) &&
QgsSettings().value( QStringLiteral( "qgis/walForSqlite3" ), true ).toBool();

Expand Down

0 comments on commit 0d71dc4

Please sign in to comment.