Questions tagged [rqgis]

Interface between R and QGIS to access QGIS functionalities from within R

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

ERROR: Could not find a version that satisfies the requirement qgis

I want to use the RQGIS library(RQGIS) # set the environment, i.e. specify all the paths necessary to run QGIS from # within R set_env() Trying to find QGIS LTR in C:/OSGEO4~1 $`root` [1] "C:/...
3
votes
0answers
57 views

Create foldable section in QGIS tool using R script

I am developping a GUI tool in QGIS using an R script and I am wondering how to add this kind of foldable section in the graphical interface.
0
votes
2answers
99 views

Slope, curvature, aspect with RQIS 3

I'm trying to calculate morfometrics index provided by SAGA using RQGIS 3 with QGIS 3.4 version. I`ve followed tutorial examples, but i dont have been successful. The script run, but don't produce ...
4
votes
1answer
67 views

Using if statement in R script within QGIS

I am creating an R script in QGIS and I am facing an issue with an if statement. First, I declare the input from the user ##Which_S2_bands_do_you_want_to_use=selection 2 3 4 5 6 7 8 11 12;2 3 4 8 11 ...
2
votes
1answer
48 views

Using multiple Boolean variables in R script within QGIS

I am testing the capabilities to run my R script in QGIS. I am facing a basic question. I am defining a dropdown menu with all the parameters for a specific variable: ##test1=group ##Sensor?=...
3
votes
1answer
40 views

Is it possible to default an output directory for R Scripts in QGIS 3.4.4?

I am currently running R Scripts through the Processing R Provider plugin on QGIS 3.4.4. I was wondering if it is possible to to set a default file path for your vector output that is the same as ...
2
votes
1answer
1k views

Intersecting lines and polygons and calculating line length in R?

I have shapefiles of polygons and lines at my disposal. I would like to intersect polygons and lines with R and thus calculate the length of the lines present in each polygon. You can find the data ...
2
votes
2answers
590 views

Load (input) and Save (output) rds files with R in QGIS script

I have done a Random Forest classification model in R and I have implemented a script to work in QGIS. For the moment I specify the model's path into the script to apply it (image), but is it any form ...
1
vote
1answer
360 views

SAGA command line not working

I'm trying to script a reclassification using SAGA Grid_Tools-Reclassify Grid Values tool but I'm having the error: Reclassify Grid Values: could not initialize data objects. I've tried different ...
1
vote
1answer
68 views

Applying advanced parameter settings with RQGIS?

I am working on stream network delineation with GRASS 7 in RQGIS, the 'r.stream.extract' algorithm in particular. However, the algorithm returns erroneous result when the Advanced parameter, "v.out....
2
votes
0answers
424 views

RQGIS R package to use QGIS functions is not working: throwing Error, UnicodeEncodeError / Python?

I am currently using R ver. 3.4.1 installed on C:\R\R-3.4.1, installed and loaded Packages: RQGIS, sp, raster. QGIS ver. 2.18.11 installed with OSGeo installer on C:\OSGeo4W64\apps\qgis. In R I am ...
1
vote
0answers
105 views

Automate the import of graphics (curves) in QGIS atlas?

I'm working on QGIS 2.18 (Windows) and often use the atlas generation tool. But for a specific study, I would very much like to be able import within the composer not only map objects, but also ...
1
vote
2answers
180 views

Defining GRASS region in RQGIS?

I would like to use grass7:i.image.mosaic algorithm in R using RQGIS packages But I don't understand how I can define it I have 14 rasters named r1:r14. I do params <- get_args_man(alg = "grass7:...
1
vote
1answer
76 views

Knowing TYPE parameters accepted values for RQGIS?

I'm trying to use RQGIS interface with QGIS to create a polygon grid. One of the required parameters is TYPE. Where can i know the type of parameters to this algorithm? and to others? From data ...
1
vote
1answer
74 views

Sample values from a grid by points in RQGIS

I need to sample values from a grid by points. In RSGA, there is a function called "pick.from.saga.grid" to sample raster data set using points. Is there something similar in RQGIS?
1
vote
1answer
134 views

RQGIS Vectorgrid output format issue

I just started using RQGIS. I ran the example code using qgis:polygoncentroids shown on https://github.com/jannes-m/RQGIS with no problem. I tried then to create a vector grid using qgis:vectorgrid ...