mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a84383379b
commit
c71a45a41d
@ -727,14 +727,14 @@ void TestQgsRasterCalculator::testOutputCrsFromRasterEntries()
|
|||||||
|
|
||||||
QVector<QgsRasterCalculatorEntry> entries;
|
QVector<QgsRasterCalculatorEntry> entries;
|
||||||
entries << entry1;
|
entries << entry1;
|
||||||
|
|
||||||
QgsRectangle extent( 783235, 3348110, 783350, 3347960 );
|
QgsRectangle extent( 783235, 3348110, 783350, 3347960 );
|
||||||
|
|
||||||
QTemporaryFile tmpFile;
|
QTemporaryFile tmpFile;
|
||||||
tmpFile.open(); // fileName is not available until open
|
tmpFile.open(); // fileName is not available until open
|
||||||
QString tmpName = tmpFile.fileName();
|
QString tmpName = tmpFile.fileName();
|
||||||
tmpFile.close();
|
tmpFile.close();
|
||||||
|
|
||||||
QgsRasterCalculator rc( QStringLiteral( "\"landsat@0\"" ), tmpName, QStringLiteral( "GTiff" ), extent, 2, 3, entries, QgsProject::instance()->transformContext() );
|
QgsRasterCalculator rc( QStringLiteral( "\"landsat@0\"" ), tmpName, QStringLiteral( "GTiff" ), extent, 2, 3, entries, QgsProject::instance()->transformContext() );
|
||||||
QCOMPARE( static_cast<int>( rc.processCalculation() ), 0 );
|
QCOMPARE( static_cast<int>( rc.processCalculation() ), 0 );
|
||||||
//open output file and check results
|
//open output file and check results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user