Feature request #2063

wrapper for R and GRASS

Added by Paolo Cavallini over 7 years ago. Updated about 4 years ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:GRASS
Target version:Future Release - Nice to have
Platform:All Resolution:fixed
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:

Description

It would be good to add a wrapper for one-shot analyses to be done in GRASS and R. In GRASS, this means:

- load a raster with r.external

- generate a location based on it

- run the analysis

- output a tiff

- load the tiff on the canvas

Similar for vectors. Of course serious GRASS work must be done via the GRASS plugin, but this will make rather complex analyses available also to non-GRASS aware people, providing a gentle introduction to it, and increasing the power of QGIS analyses.

History

Updated by Redmine Admin about 7 years ago

How GRASS is involved here? There is rgdal. Especially if you start with r.external, I don't see any reason it should be somehow linked to GRASS plugin. It can be general tool either reading data directly from providers (better I think) or via gdal (rgdal).

Updated by Paolo Cavallini about 7 years ago

Sorry I was unclear. Many users find the location-mapset GRASS concept difficult to understand, and cumbersome for one-shot analyses.
The idea here is to hide this complexity by creating a location on the fly, running the analysis, exporting the result, and load it on the canvas.
In this way, one could use GRASS without knowing much about it.

Updated by Paolo Cavallini about 6 years ago

See more details in #3135

Updated by Paolo Cavallini almost 6 years ago

Concerning on the fly GRASS locations, see this example of a simple implementation: http://grass.osgeo.org/wiki/GRASS_and_Sextante

Updated by Markus Neteler almost 6 years ago

Sextance uses GRASS in a very efficient way, no need to understand GRASS' location-mapset concept. It creates a mapset on the fly and just runs the analysis in a temporary session as indicated above. Works nicely in the gvSIG-OADE-Sextante-GRASS package which I indicated in the GRASS Wiki page. It would be a BIG (and likely rather easy to implement) improvement of the QGIS-GRASS integration to use the same method. All pieces are likely there.

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Giovanni Manghi about 4 years ago

  • Status changed from Open to Closed
  • Assigned to deleted (nobody -)
  • Resolution set to fixed
  • Pull Request or Patch supplied set to No

solved with sextante.

Also available in: Atom