Skip to content

Commit

Permalink
[processing] test for newly added parameter in Clip Raster by Extent
Browse files Browse the repository at this point in the history
(followup 41dc20c)
  • Loading branch information
alexbruy committed Oct 28, 2020
1 parent 41dc20c commit 554ce82
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -367,6 +367,17 @@ def testClipRasterByExtent(self):
source + ' ' +
outdir + '/check.jpg'])

# override CRS
self.assertEqual(
alg.getConsoleCommands({'INPUT': source,
'EXTENT': extent,
'OVERCRS': True,
'OUTPUT': outdir + '/check.jpg'}, context, feedback),
['gdal_translate',
'-projwin 0.0 0.0 0.0 0.0 -a_srs EPSG:4326 -of JPEG ' +
source + ' ' +
outdir + '/check.jpg'])

def testClipRasterByMask(self):
context = QgsProcessingContext()
feedback = QgsProcessingFeedback()
Expand Down

0 comments on commit 554ce82

Please sign in to comment.