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 20, 2022
1 parent d145779 commit fb72e34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/providers/ogr/qgsogrproviderutils.cpp
Expand Up @@ -998,6 +998,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 fb72e34

Please sign in to comment.