-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,13 +176,20 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr | |
buildsupportedrasterfilefilter_t *pBuild = ( buildsupportedrasterfilefilter_t * ) cast_to_fptr( QgsProviderRegistry::instance()->function( "gdal", "buildSupportedRasterFileFilter" ) ); | ||
if ( ! pBuild ) | ||
{ | ||
QgsDebugMsg( "Could get buildSupportedRasterFileFilter in gdal provider library" ); | ||
QgsDebugMsg( "Could not get buildSupportedRasterFileFilter in gdal provider library" ); | ||
return; | ||
} | ||
|
||
pBuild( theFileFiltersString ); | ||
} | ||
|
||
QString QgsRasterLayer::buildSupportedRasterFileFilter2( ) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
etiennesky
Author
Contributor
|
||
{ | ||
QString theFileFiltersString; | ||
buildSupportedRasterFileFilter( theFileFiltersString ); | ||
return theFileFiltersString; | ||
} | ||
|
||
/** | ||
* This helper checks to see whether the file name appears to be a valid raster file name | ||
*/ | ||
|
Why do not put it into the QgsProviderRegistry class, like the fileVectorFilters()?
It is difficult to find similar things in completely different classes...
Anyway, if QgsRasterLayer is the right place where to put it, why do not keep the old name i.e. buildSupportedRasterFileFilter or, better, rename it according to the fileVectorFilter method?