Feature request #2063
wrapper for R and GRASS
|Pull Request or Patch supplied:||No||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12123|
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.
#1 Updated by Redmine Admin almost 10 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).
#2 Updated by Paolo Cavallini almost 10 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.
#5 Updated by Markus Neteler almost 9 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.