Skip to content

Commit

Permalink
Remove confusing crs prompt which can show when loading a raster file…
Browse files Browse the repository at this point in the history
… into the georeferencer window

(cherry picked from commit ad052b5)
  • Loading branch information
nyalldawson committed Feb 21, 2021
1 parent ea4bc09 commit 76620ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/georeferencer/qgsgeorefmainwindow.cpp
Expand Up @@ -1167,6 +1167,8 @@ void QgsGeoreferencerMainWindow::removeOldLayer()
void QgsGeoreferencerMainWindow::addRaster( const QString &file )
{
QgsRasterLayer::LayerOptions options;
// never prompt for a crs selection for the input raster!
options.skipCrsValidation = true;
mLayer = qgis::make_unique< QgsRasterLayer >( file, QStringLiteral( "Raster" ), QStringLiteral( "gdal" ), options );

// add layer to map canvas
Expand Down

0 comments on commit 76620ff

Please sign in to comment.