mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
GRASS test fix
This commit is contained in:
parent
9e09646410
commit
1100c9871d
@ -367,7 +367,7 @@ void TestQgsGrassProvider::info()
|
|||||||
{
|
{
|
||||||
es = expectedStats.value( map );
|
es = expectedStats.value( map );
|
||||||
// TODO: QgsGrass::info() may open dialog window on error which blocks tests
|
// TODO: QgsGrass::info() may open dialog window on error which blocks tests
|
||||||
QHash<QString, QString> info = QgsGrass::info( mGisdbase, mLocation, "test", map, QgsGrass::Raster, "stats",
|
QHash<QString, QString> info = QgsGrass::info( mGisdbase, mLocation, "test", map, QgsGrassObject::Raster, "stats",
|
||||||
expectedExtent, 10, 10, 5000, false );
|
expectedExtent, 10, 10, 5000, false );
|
||||||
reportRow( "map: " + map );
|
reportRow( "map: " + map );
|
||||||
QgsRasterBandStats s;
|
QgsRasterBandStats s;
|
||||||
@ -379,7 +379,7 @@ void TestQgsGrassProvider::info()
|
|||||||
compare( es.minimumValue, s.minimumValue, ok );
|
compare( es.minimumValue, s.minimumValue, ok );
|
||||||
compare( es.maximumValue, s.maximumValue, ok );
|
compare( es.maximumValue, s.maximumValue, ok );
|
||||||
|
|
||||||
QgsRectangle extent = QgsGrass::extent( mGisdbase, mLocation, "test", map, QgsGrass::Raster, false );
|
QgsRectangle extent = QgsGrass::extent( mGisdbase, mLocation, "test", map, QgsGrassObject::Raster, false );
|
||||||
reportRow( "expectedExtent: " + expectedExtent.toString() );
|
reportRow( "expectedExtent: " + expectedExtent.toString() );
|
||||||
reportRow( "extent: " + extent.toString() );
|
reportRow( "extent: " + extent.toString() );
|
||||||
if ( extent != expectedExtent )
|
if ( extent != expectedExtent )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user