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 47397ee commit ab28d527d5c8ea5c6c4f522ba14339565b473632
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/r/RAlgorithm.py
@@ -355,7 +355,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 ab28d52

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