← 返回命令列表

Linux command

qgis_process 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all available

qgis_process list

Show help

qgis_process help [algorithm_id]

Run a buffer

qgis_process run native:buffer -- INPUT=[input.shp] DISTANCE=[10] OUTPUT=[buffered.shp]

Run an algorithm

qgis_process run [algorithm_id] --json -- [PARAM]=[VALUE]

List available plugins

qgis_process plugins

Enable a plugin

qgis_process plugins enable [grassprovider]

说明

qgis_process is a standalone command-line tool for running QGIS Processing algorithms without launching the QGIS GUI. It provides access to the full Processing framework including native QGIS algorithms, GDAL, GRASS GIS, SAGA, and any third-party plugin algorithms, all from the terminal. This enables batch processing of geospatial data via shell scripts, automation with cron jobs, integration with external tools and pipelines, and headless server usage for geoprocessing workflows. Algorithm parameters are passed after a -- separator using PARAM=VALUE syntax, and repeated parameters create ordered lists. Special parameters include --ELLIPSOID, --PROJECT_PATH, --distance_units, and --area_units for controlling coordinate reference and measurement settings. The tool ships with QGIS 3.14 and later as part of the standard installation.

参数

list
List all available processing algorithms, grouped by provider.
help _algorithm_id_
Display help and parameter descriptions for a specific algorithm.
run _algorithm_id_ -- _PARAM=VALUE ..._
Execute an algorithm with the given parameters. Parameters follow -- using KEY=VALUE syntax. A trailing - reads parameters from stdin as JSON.
plugins
List available and active processing provider plugins.
plugins enable _name_
Activate a specific plugin provider.
plugins disable _name_
Deactivate a specific plugin provider.
--json
Format output as JSON.
--verbose
Enable verbose logging output.
--no-python
Disable Python support for faster startup.
--skip-loading-plugins
Skip loading plugins for faster startup.
-h, --help
Display help information.
-v, --version
Show version details.

FAQ

What is the qgis_process command used for?

qgis_process is a standalone command-line tool for running QGIS Processing algorithms without launching the QGIS GUI. It provides access to the full Processing framework including native QGIS algorithms, GDAL, GRASS GIS, SAGA, and any third-party plugin algorithms, all from the terminal. This enables batch processing of geospatial data via shell scripts, automation with cron jobs, integration with external tools and pipelines, and headless server usage for geoprocessing workflows. Algorithm parameters are passed after a -- separator using PARAM=VALUE syntax, and repeated parameters create ordered lists. Special parameters include --ELLIPSOID, --PROJECT_PATH, --distance_units, and --area_units for controlling coordinate reference and measurement settings. The tool ships with QGIS 3.14 and later as part of the standard installation.

How do I run a basic qgis_process example?

Run `qgis_process list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in qgis_process?

List all available processing algorithms, grouped by provider.