Skip to content

Commit ab28d52

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 47397ee commit ab28d52

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
@@ -355,7 +355,9 @@ def getImportCommands(self):
355355
elif isinstance(param, ParameterExtent):
356356
if param.value:
357357
tokens = unicode(param.value).split(',')
358-
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[2] + ',' + tokens[1] + ',' + tokens[3] + ')')
358+
# Extent from raster package is "xmin, xmax, ymin, ymax" like in Processing
359+
# http://www.inside-r.org/packages/cran/raster/docs/Extent
360+
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[1] + ',' + tokens[2] + ',' + tokens[3] + ')')
359361
else:
360362
commands.append(param.name + ' = NULL')
361363
elif isinstance(param, ParameterCrs):

0 commit comments

Comments
 (0)