Learn R Programming

RQGIS (version 0.1.0)

get_args: Automatically retrieve GIS function arguments

Description

get_args uses get_usage to retrieve function arguments of a GIS function.

Usage

get_args(alg = NULL, qgis_env = set_env())

Arguments

alg
A character specifying the GIS algorithm whose arguments you want to retrieve.
qgis_env
Environment containing all the paths to run the QGIS API. For more information, refer to set_env.

Value

The function returns a list whose names correspond to the function arguments you need to specify. Later on, the specified function arguments can serve as input for run_qgis's params argument.

Examples

Run this code
## Not run: 
# get_args(alg = "qgis:addfieldtoattributestable")
# ## End(Not run)

Run the code above in your browser using DataLab