Skip to content

Commit

Permalink
[BUGFIX][Processing] R: Extent from raster package is "xmin, xmax, ym…
Browse files Browse the repository at this point in the history
…in, ymax"

Extent from raster package is like in Processing
http://www.inside-r.org/packages/cran/raster/docs/Extent
  • Loading branch information
rldhont committed May 31, 2016
1 parent 7270fda commit d5befee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/r/RAlgorithm.py
Expand Up @@ -352,7 +352,9 @@ def getImportCommands(self):
elif isinstance(param, ParameterExtent):
if param.value:
tokens = unicode(param.value).split(',')
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[2] + ',' + tokens[1] + ',' + tokens[3] + ')')
# Extent from raster package is "xmin, xmax, ymin, ymax" like in Processing
# http://www.inside-r.org/packages/cran/raster/docs/Extent
commands.append(param.name + ' = extent(' + tokens[0] + ',' + tokens[1] + ',' + tokens[2] + ',' + tokens[3] + ')')
else:
commands.append(param.name + ' = NULL')
elif isinstance(param, ParameterCrs):
Expand Down

0 comments on commit d5befee

Please sign in to comment.