Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1017 from DelazJ/codeSamples
Browse files Browse the repository at this point in the history
Use code-block instead of bactick for code samples
  • Loading branch information
rduivenvoorde authored Aug 4, 2022
2 parents 58b9455 + 47f1527 commit 869c5d1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions source/site/forusers/visualchangelog324/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -783,23 +783,33 @@ We now provide a mechanism to support complex input parameters for algorithms wh

To indicate that parameters will be specified via stdin then the qgis\_process command must follow the format

``qgis_process run algid -``
.. code-block::
(with a trailing - in place of the usual arguments list).
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.
.. code-block::
``echo "{"inputs": {\"INPUT\": \"my_shape.shp\", DISTANCE: 5}}" | qgis_process run native:buffer -``
echo "{"inputs": {\"INPUT\": \"my_shape.shp\", DISTANCE: 5}}" | qgis_process run native:buffer -
Additionally, extra settings like the distance units, area units, ellipsoid and project path can be included in this JSON object:

``{ 'ellipsoid': 'EPSG:7019', 'distance_units': 'feet', 'area_units': 'ha', 'project_path': 'c:/temp/my_project.qgs' 'inputs': {'DISTANCE': 5, ..... } }``
.. code-block::
{
'ellipsoid': 'EPSG:7019',
'distance_units': 'feet',
'area_units': 'ha',
'project_path': 'c:/temp/my_project.qgs'
'inputs': {'DISTANCE': 5, ..... }
}
(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!
One big motivation behind this enhancement is to provide a way for the qgis\_process R libraries to support parameter types such as aggregates!

This feature was funded by the `Research Institute for Nature and Forest <https://www.inbo.be/en>`__, Flemish Govt

Expand Down

0 comments on commit 869c5d1

Please sign in to comment.