Skip to content

Commit

Permalink
GDAL provider: fix loading rasters from compressed files
Browse files Browse the repository at this point in the history
Broken by myself at 80aa37f
  • Loading branch information
marisn authored and nyalldawson committed May 24, 2022
1 parent d62f0fd commit 9a75c09
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -3788,13 +3788,6 @@ QList<QgsProviderSublayerDetails> QgsGdalProviderMetadata::querySublayers( const
dataset.reset( QgsGdalProviderBase::gdalOpen( npGdalUri, GDAL_OF_READONLY ) );
CPLPopErrorHandler();

if ( !dataset )
{
CPLPushErrorHandler( CPLQuietErrorHandler );
CPLErrorReset();
dataset.reset( QgsGdalProviderBase::gdalOpen( gdalUri, GDAL_OF_READONLY ) );
CPLPopErrorHandler();
}
if ( dataset )
{
const QList< QgsProviderSublayerDetails > res = QgsGdalProvider::sublayerDetails( dataset.get(), uri );
Expand Down

0 comments on commit 9a75c09

Please sign in to comment.