Skip to content
Permalink
Browse files

Tweak raster calc test

  • Loading branch information
nyalldawson committed Jun 30, 2015
1 parent bb6bff0 commit 6e6cb6607dc4866a4e07adb173f4d53041a8cba7
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/src/analysis/testqgsrastercalculator.cpp
@@ -497,7 +497,7 @@ void TestQgsRasterCalculator::calcWithReprojectedLayers()

QgsCoordinateReferenceSystem crs;
crs.createFromId( 32633, QgsCoordinateReferenceSystem::EpsgCrsId );
QgsRectangle extent( 783270, 3348110, 783370, 3347910 );
QgsRectangle extent( 783235, 3348110, 783350, 3347960 );

QTemporaryFile tmpFile;
tmpFile.open(); // fileName is no avialable until open
@@ -515,12 +515,12 @@ void TestQgsRasterCalculator::calcWithReprojectedLayers()
QCOMPARE( result->width(), 2 );
QCOMPARE( result->height(), 3 );
QgsRasterBlock* block = result->dataProvider()->block( 1, extent, 2, 3 );
QCOMPARE( block->value( 0, 0 ), 263.0 );
QCOMPARE( block->value( 0, 0 ), 264.0 );
QCOMPARE( block->value( 0, 1 ), 263.0 );
QCOMPARE( block->value( 1, 0 ), 262.0 );
QCOMPARE( block->value( 1, 1 ), 261.0 );
QCOMPARE( block->value( 2, 0 ), 267.0 );
QCOMPARE( block->value( 2, 1 ), 268.0 );
QCOMPARE( block->value( 1, 0 ), 264.0 );
QCOMPARE( block->value( 1, 1 ), 264.0 );
QCOMPARE( block->value( 2, 0 ), 266.0 );
QCOMPARE( block->value( 2, 1 ), 261.0 );
delete result;
delete block;
}

0 comments on commit 6e6cb66

Please sign in to comment.
You can’t perform that action at this time.