Skip to content
Permalink
Browse files

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

… into the georeferencer window
  • Loading branch information
nyalldawson committed Feb 19, 2021
1 parent 0e6ad36 commit c67e29a02e0fcd96ab3e8d4659c0fe2b2da95101
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 c67e29a

Please sign in to comment.