Skip to content
Permalink
Browse files

Remove confusing crs prompt which can show when loading a raster file…

… into the georeferencer window

(cherry picked from commit ad052b5)
  • Loading branch information
nyalldawson committed Feb 21, 2021
1 parent ea4bc09 commit 76620ff83d5aae7ff10b0af55158d2cf2d342307
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/georeferencer/qgsgeorefmainwindow.cpp
@@ -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

0 comments on commit 76620ff

Please sign in to comment.