forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Allow input parameter values for qgis_process to be
specified as a JSON object passed via stdin to qgis_process This provides a mechanism to support complex input parameters for algorithms, and a way for qgis_process to gain support for parameter types which are themselves specified as a dictionary type object. To indicate that parameters will be specified via stdin then the qgis_process command must follow the format qgis_process run algid - (with a trailing - in place of the usual arguments list). The JSON object must contain an "inputs" key, which is a map of the input parameter values. E.g. echo "{"inputs": {\"INPUT\": \"my_shape.shp\", DISTANCE: 5}}" | qgis_process run native:buffer - Specifying input parameters via stdin implies automatically the --json output format for results. One big motivation behind this enhancement is to provide a way for the qgisprocess R libraries to support parameter types such as aggregates. Refs r-spatial/qgisprocess#56 Refs r-spatial/qgisprocess#44 Sponsored by the Research Institute for Nature and Forest, Flemish Govt
- Loading branch information
1 parent
9961b93
commit 2573988
Showing
3 changed files
with
213 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters