Skip to content

Commit

Permalink
Forward port of test raster layer save as dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 5, 2019
1 parent ebd86c4 commit df25107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/gui/testqgsrasterlayersaveasdialog.cpp
Expand Up @@ -92,7 +92,7 @@ void TestQgsRasterLayerSaveAsDialog::outputLayerExists()
fileWriter.setPyramidsResampling( d.pyramidsResamplingMethod() );
fileWriter.setPyramidsFormat( d.pyramidsFormat() );
fileWriter.setPyramidsConfigOptions( d.pyramidsConfigOptions() );
fileWriter.writeRaster( &pipe, 10, 10, rl.extent(), rl.crs() );
fileWriter.writeRaster( &pipe, 10, 10, rl.extent(), rl.crs(), rl.transformContext() );
{
QVERIFY( QgsRasterLayer( rasterUri, QStringLiteral( "my_raster2" ) ).isValid() );
}
Expand All @@ -101,7 +101,7 @@ void TestQgsRasterLayerSaveAsDialog::outputLayerExists()
d.mLayerName->setText( QStringLiteral( "test_vector_layer" ) );
QVERIFY( d.outputLayerExists() );
auto fileWriter2 { QgsRasterFileWriter( d.outputFileName() ) };
fileWriter2.writeRaster( &pipe, 10, 10, rl.extent(), rl.crs() );
fileWriter2.writeRaster( &pipe, 10, 10, rl.extent(), rl.crs(), rl.transformContext() );
{
auto rasterUri2 { QStringLiteral( "GPKG:%1:%2" ).arg( d.outputFileName() ).arg( d.outputLayerName() ) };
QVERIFY( ! QgsRasterLayer( rasterUri2, QStringLiteral( "my_raster2" ) ).isValid() );
Expand Down

0 comments on commit df25107

Please sign in to comment.