Skip to content

Commit

Permalink
well, let's try outputting qgis_process stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jannes-m committed Apr 14, 2023
1 parent 753ef7f commit 1cd2f3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions 10-gis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ library(gdalcubes)
```{r 09-gis-1-3, echo=FALSE, message=FALSE}
# Only run code if qgis is installed
has_qgis = FALSE
qgisprocess_installed = "qgisprocess" %in% installed.packages()
if(qgisprocess_installed) {
if ("qgisprocess" %in% installed.packages()) {
has_qgis = qgisprocess::has_qgis()
}
```
Expand Down Expand Up @@ -239,9 +238,8 @@ qgis_algo = qgis_algorithms()
The `qgis_algo` object has a lot of columns, but usually, we are only interested in the `algorithm` column that combines information about the provider and the algorithm name.
Assuming that the short description of the function contains the word "union"\index{union}, we can run the following code to find the algorithm of interest:

```{r, eval=FALSE}
```{r, eval=has_qgis}
grep("union", qgis_algo$algorithm, value = TRUE)
#> [1] "native:multiunion" "native:union" "sagang:fuzzyunionor" "sagang:polygonunion"
```

One of the algorithms on the above list, `"native:union"`, sounds promising.
Expand Down

0 comments on commit 1cd2f3b

Please sign in to comment.