mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Changed to a much smaller raster file
This commit is contained in:
parent
75eef25068
commit
b890e1f11e
@ -44,9 +44,14 @@ void TestProjectionIssues::initTestCase()
|
||||
QgsApplication::initQgis();
|
||||
|
||||
//create maplayer from testdata and add to layer registry
|
||||
QFileInfo rasterFileInfo( QString( TEST_DATA_DIR ) + QDir::separator() + "issue5895_world.tif" );
|
||||
QFileInfo rasterFileInfo( QString( TEST_DATA_DIR ) + QDir::separator() + "checker360by180.asc" );
|
||||
mRasterLayer = new QgsRasterLayer( rasterFileInfo.filePath(),
|
||||
rasterFileInfo.completeBaseName() );
|
||||
// Set to WGS84
|
||||
QgsCoordinateReferenceSystem sourceCRS;
|
||||
sourceCRS.createFromId( 4326, QgsCoordinateReferenceSystem::EpsgCrsId );
|
||||
mRasterLayer->setCrs( sourceCRS, false);
|
||||
|
||||
QgsMultiBandColorRenderer* rasterRenderer = new QgsMultiBandColorRenderer( mRasterLayer->dataProvider(), 2, 3, 4 );
|
||||
mRasterLayer->setRenderer( rasterRenderer );
|
||||
|
||||
|
21
tests/testdata/checker360by180.asc
vendored
Normal file
21
tests/testdata/checker360by180.asc
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
NCOLS 24
|
||||
NROWS 12
|
||||
XLLCENTER -172.5
|
||||
YLLCENTER -82.5
|
||||
DX 15
|
||||
DY 15
|
||||
NODATA_VALUE -9999
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
|
||||
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
|
||||
CRS
|
||||
NOTES
|
BIN
tests/testdata/issue5895_world.tif
vendored
BIN
tests/testdata/issue5895_world.tif
vendored
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user