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

Please sign in to comment.