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)
(cherry picked from commit 76620ff)
  • Loading branch information
nyalldawson committed Mar 19, 2021
1 parent d64f35d commit f8d4a27e2b9339cf3a2033daf3d22d877dbf7bb0
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/georeferencer/qgsgeorefmainwindow.cpp
@@ -1082,6 +1082,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 f8d4a27

Please sign in to comment.