Skip to content

Commit 6e6cb66

Browse files
committedJun 30, 2015
Tweak raster calc test
1 parent bb6bff0 commit 6e6cb66

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎tests/src/analysis/testqgsrastercalculator.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ void TestQgsRasterCalculator::calcWithReprojectedLayers()
497497

498498
QgsCoordinateReferenceSystem crs;
499499
crs.createFromId( 32633, QgsCoordinateReferenceSystem::EpsgCrsId );
500-
QgsRectangle extent( 783270, 3348110, 783370, 3347910 );
500+
QgsRectangle extent( 783235, 3348110, 783350, 3347960 );
501501

502502
QTemporaryFile tmpFile;
503503
tmpFile.open(); // fileName is no avialable until open
@@ -515,12 +515,12 @@ void TestQgsRasterCalculator::calcWithReprojectedLayers()
515515
QCOMPARE( result->width(), 2 );
516516
QCOMPARE( result->height(), 3 );
517517
QgsRasterBlock* block = result->dataProvider()->block( 1, extent, 2, 3 );
518-
QCOMPARE( block->value( 0, 0 ), 263.0 );
518+
QCOMPARE( block->value( 0, 0 ), 264.0 );
519519
QCOMPARE( block->value( 0, 1 ), 263.0 );
520-
QCOMPARE( block->value( 1, 0 ), 262.0 );
521-
QCOMPARE( block->value( 1, 1 ), 261.0 );
522-
QCOMPARE( block->value( 2, 0 ), 267.0 );
523-
QCOMPARE( block->value( 2, 1 ), 268.0 );
520+
QCOMPARE( block->value( 1, 0 ), 264.0 );
521+
QCOMPARE( block->value( 1, 1 ), 264.0 );
522+
QCOMPARE( block->value( 2, 0 ), 266.0 );
523+
QCOMPARE( block->value( 2, 1 ), 261.0 );
524524
delete result;
525525
delete block;
526526
}

0 commit comments

Comments
 (0)
Please sign in to comment.