Skip to content
Permalink
Browse files

Correctly show ers files in browser

Workaround missing metadata in gdal driver

(cherry-picked from f95d616)
  • Loading branch information
nyalldawson committed Mar 12, 2018
1 parent 47a90e9 commit 8ba3988bc4f7725697fa18918b08b14a1d5e7cd2
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/providers/gdal/qgsgdalprovider.cpp
@@ -2251,7 +2251,6 @@ void buildSupportedRasterFileFilterAndExtensions( QString &fileFiltersString, QS
}

fileFiltersString += createFileFilter_( myGdalDriverLongName, glob );

}


@@ -2276,6 +2275,11 @@ void buildSupportedRasterFileFilterAndExtensions( QString &fileFiltersString, QS
fileFiltersString += createFileFilter_( myGdalDriverLongName, QStringLiteral( "*.bil" ) );
extensions << QStringLiteral( "bil" );
}
else if ( myGdalDriverDescription == QLatin1String( "ERS" ) )
{
fileFiltersString += createFileFilter_( myGdalDriverLongName, QStringLiteral( "*.ers" ) );
extensions << QStringLiteral( "ers" );
}
else if ( myGdalDriverDescription.startsWith( QLatin1String( "AIG" ) ) )
{
fileFiltersString += createFileFilter_( myGdalDriverLongName, QStringLiteral( "hdr.adf" ) );

0 comments on commit 8ba3988

Please sign in to comment.
You can’t perform that action at this time.