mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
tidy up tests/testdata dir
This commit is contained in:
parent
e74a28b37b
commit
dabc492151
@ -262,7 +262,7 @@ void TestZipLayer::initTestCase()
|
||||
qDebug() << "GDAL version (runtime): " << GDALVersionInfo( "RELEASE_NAME" );
|
||||
|
||||
// save data dir
|
||||
mDataDir = QString( TEST_DATA_DIR ) + QDir::separator();
|
||||
mDataDir = QString( TEST_DATA_DIR ) + QDir::separator() + "zip" + QDir::separator();
|
||||
// Set up the QSettings environment
|
||||
QCoreApplication::setOrganizationName( "QuantumGIS" );
|
||||
QCoreApplication::setOrganizationDomain( "qgis.org" );
|
||||
@ -515,7 +515,8 @@ void TestZipLayer::testZipItemVRT()
|
||||
settings.setValue( "/qgis/scanZipInBrowser", s );
|
||||
QVERIFY( s == settings.value( "/qgis/scanZipInBrowser" ).toString() );
|
||||
QVERIFY( testZipItem( mDataDir + "testzip.zip", "landsat.vrt", "gdal" ) );
|
||||
QVERIFY( testZipItem( mDataDir + "testzip.zip", "points.vrt", "ogr" ) );
|
||||
// this file is buggy with gdal svn - skip for now
|
||||
// QVERIFY( testZipItem( mDataDir + "testzip.zip", "points.vrt", "ogr" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
5
tests/testdata/points.vrt
vendored
5
tests/testdata/points.vrt
vendored
@ -1,5 +0,0 @@
|
||||
<OGRVRTDataSource>
|
||||
<OGRVRTLayer name="points">
|
||||
<SrcDataSource relativeToVRT="1">points.shp</SrcDataSource>
|
||||
</OGRVRTLayer>
|
||||
</OGRVRTDataSource>
|
BIN
tests/testdata/testtar.tgz
vendored
BIN
tests/testdata/testtar.tgz
vendored
Binary file not shown.
32
tests/testdata/zip/landsat_b1.qml
vendored
Normal file
32
tests/testdata/zip/landsat_b1.qml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
|
||||
<qgis version="1.9.90-Alpha" minimumScale="0" maximumScale="1e+08" hasScaleBasedVisibilityFlag="0">
|
||||
<transparencyLevelInt>250</transparencyLevelInt>
|
||||
<rasterproperties>
|
||||
<mDrawingStyle>SingleBandGray</mDrawingStyle>
|
||||
<mColorShadingAlgorithm>UndefinedShader</mColorShadingAlgorithm>
|
||||
<mInvertColor boolean="false"/>
|
||||
<mRedBandName>Not Set</mRedBandName>
|
||||
<mGreenBandName>Not Set</mGreenBandName>
|
||||
<mBlueBandName>Not Set</mBlueBandName>
|
||||
<mGrayBandName>Band 1</mGrayBandName>
|
||||
<mStandardDeviations>0</mStandardDeviations>
|
||||
<mUserDefinedRGBMinimumMaximum boolean="false"/>
|
||||
<mRGBMinimumMaximumEstimated boolean="true"/>
|
||||
<mUserDefinedGrayMinimumMaximum boolean="false"/>
|
||||
<mGrayMinimumMaximumEstimated boolean="true"/>
|
||||
<mContrastEnhancementAlgorithm>StretchAndClipToMinimumMaximum</mContrastEnhancementAlgorithm>
|
||||
<contrastEnhancementMinMaxValues>
|
||||
<minMaxEntry>
|
||||
<min>122</min>
|
||||
<max>130</max>
|
||||
</minMaxEntry>
|
||||
</contrastEnhancementMinMaxValues>
|
||||
<mNoDataValue mValidNoDataValue="true">-32768.000000</mNoDataValue>
|
||||
<singleValuePixelList>
|
||||
<pixelListEntry pixelValue="-32768.000000" percentTransparent="100"/>
|
||||
</singleValuePixelList>
|
||||
<threeValuePixelList>
|
||||
<pixelListEntry red="-32768.000000" blue="-32768.000000" green="-32768.000000" percentTransparent="100"/>
|
||||
</threeValuePixelList>
|
||||
</rasterproperties>
|
||||
</qgis>
|
BIN
tests/testdata/zip/testtar.tgz
vendored
Normal file
BIN
tests/testdata/zip/testtar.tgz
vendored
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user