Skip to content

Commit d5befee

Browse files
committed
[BUGFIX][Processing] R: Extent from raster package is "xmin, xmax, ymin, ymax"
Extent from raster package is like in Processing http://www.inside-r.org/packages/cran/raster/docs/Extent
1 parent 7270fda commit d5befee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/plugins/processing/algs/r/RAlgorithm.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ def getImportCommands(self):
352352
elif isinstance(param, ParameterExtent):
353353
if param.value:
354354
tokens = unicode(param.value).split(',')
355-
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[2] + ',' + tokens[1] + ',' + tokens[3] + ')')
355+
# Extent from raster package is "xmin, xmax, ymin, ymax" like in Processing
356+
# http://www.inside-r.org/packages/cran/raster/docs/Extent
357+
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[1] + ',' + tokens[2] + ',' + tokens[3] + ')')
356358
else:
357359
commands.append(param.name + ' = NULL')
358360
elif isinstance(param, ParameterCrs):

0 commit comments

Comments
 (0)