Skip to content
Permalink
Browse files

[processing] test for newly added parameter in Clip Raster by Extent

(followup 41dc20c)
  • Loading branch information
alexbruy committed Oct 28, 2020
1 parent 41dc20c commit 554ce82c3271db70f158ecad78cc71a1ba02aab1
Showing with 11 additions and 0 deletions.
  1. +11 −0 python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
@@ -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()

0 comments on commit 554ce82

Please sign in to comment.
You can’t perform that action at this time.