mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Get transform context from project instance in app
This commit is contained in:
parent
9afa5bbba6
commit
6e0bd822f3
@ -7573,7 +7573,7 @@ QString QgisApp::saveAsRasterFile( QgsRasterLayer *rasterLayer, const bool defau
|
||||
QgsDebugMsg( QStringLiteral( "Cannot get pipe projector" ) );
|
||||
return QString();
|
||||
}
|
||||
projector->setCrs( rasterLayer->crs(), d.outputCrs(), rasterLayer->dataProvider()->transformContext() );
|
||||
projector->setCrs( rasterLayer->crs(), d.outputCrs(), QgsProject::instance()->transformContext() );
|
||||
}
|
||||
|
||||
if ( !pipe->last() )
|
||||
@ -7595,7 +7595,7 @@ QString QgisApp::saveAsRasterFile( QgsRasterLayer *rasterLayer, const bool defau
|
||||
QString outputFormat = d.outputFormat();
|
||||
|
||||
QgsRasterFileWriterTask *writerTask = new QgsRasterFileWriterTask( fileWriter, pipe.release(), d.nColumns(), d.nRows(),
|
||||
d.outputRectangle(), d.outputCrs() );
|
||||
d.outputRectangle(), QgsProject::instance()->transformContext(), d.outputCrs() );
|
||||
|
||||
// when writer is successful:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user