Skip to content
Permalink
Browse files

[BUGFIX][Processing] R: Extent from raster package is "xmin, xmax, ym…

…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 d5befee58bfa0899420b63d02f4bfa92d7290999
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/r/RAlgorithm.py
@@ -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):

0 comments on commit d5befee

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