Learn R Programming

RQGIS (version 0.2.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 one wishes to retrieve.

qgis_env

Environment containing all the paths to run the QGIS API. For more information, refer to set_env.

Value

get_args returns a list with the function arguments of a specific QGIS geoalgorithm. Later on, the specified function arguments should serve as input for run_qgis's params argument.

Examples

Run this code
# NOT RUN {
get_args(alg = "qgis:addfieldtoattributestable")
# }

Run the code above in your browser using DataLab