Skip to content
Permalink
Browse files

Merge pull request #39687 from alexbruy/gdal-clip-test

[processing] test for newly added parameter in Clip Raster by Extent (followup 41dc20c)
  • Loading branch information
alexbruy committed Oct 28, 2020
2 parents 41dc20c + 554ce82 commit cfbb292bad0652057629afe31e977c1456593e4e
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 cfbb292

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