Skip to content
Permalink
Browse files
raster sublayers win fix
  • Loading branch information
blazek committed Jan 3, 2013
1 parent 1039423 commit 5fefe381b04b44e83a109e87592b53a426c43df9
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/src/core/testqgsrastersublayer.cpp
@@ -126,14 +126,16 @@ void TestQgsRasterSubLayer::subLayersList()
//QVERIFY( mpRasterLayer->isValid() );
QStringList expected;
// Sublayer format: NETCDF:"/path/to/landsat2.nc":Band1
// NETCDF:"c:/path/to/landsat2.nc":Band1
// File path is delicate on Windows -> compare only sublayers
expected << "Band1";
expected << "Band2";

QStringList sublayers;
foreach ( QString s, mpRasterLayer->subLayers() )
{
sublayers << s.split( ':' ).value( 2 );
qDebug() << "sublayer: " << s;
sublayers << s.split( ':' ).last();
}
qDebug() << "sublayers: " << sublayers.join( "," );
mReport += QString( "sublayers:<br>%1<br>\n" ).arg( sublayers.join( "<br>" ) );

0 comments on commit 5fefe38

Please sign in to comment.