-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vignette on using QGIS expressions with qgisprocess #143
Conversation
The error is just avoided by skipping a code chunk on Windows... The error being: Quitting from lines 98-105 (C:/Users/runneradmin/AppData/Local/Temp/RtmpMTIOIS/Rbuild1bb4257c5a60/qgisprocess/man/vignette_childs/_qgis_expressions.Rmd) Quitting from lines 34-36 (C:/Users/runneradmin/AppData/Local/Temp/RtmpMTIOIS/Rbuild1bb4257c5a60/qgisprocess/man/vignette_childs/_qgis_expressions.Rmd) Error: Error: processing vignette 'qgis_expressions.Rmd' failed with diagnostics: ! System command 'cmd.exe' failed --- failed re-building 'qgis_expressions.Rmd' SUMMARY: processing the following file failed: 'qgis_expressions.Rmd' This may hint at a possible windows-specific bug in qgis_process, e.g. involving the new QGIS function load_layer(). To be checked!!
An example is provided by the `DISTANCE` argument of `native:buffer`, for which we query the acceptable values below. | ||
|
||
```{r} | ||
qgis_arguments("native:buffer") |> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With QGIS 3.28.2 this results it:
|acceptable_values |
|:-----------------|
|A numeric value |
Not sure, if this is the desired result
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, later on you say that this is only possible with QGIS 3.30 onwards, ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing this really interesting and useful vignette!
Thanks for reviewing and updating! |
This vignette more or less depends on QGIS>=3.30 for some more involved cases. Some new features were recently added to QGIS to make more things possible in this area from R (qgis/QGIS#50481 & PR qgis/QGIS#51293; qgis/QGIS#50482 & PR qgis/QGIS#51412).
@jannes-m if you can propose other examples, feel free to do so.
Task list: