-
-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New standalone console tool for running processing algorithms (Request in QGIS) #5803
Comments
@nyalldawson, I tried to test this with master (compiled from source on Ubuntu 18.04) just now
When trying in the Python console, i get:
Missing import? |
It's not a python tool. It's a standalone console tool, similar to "ogr2ogr" . |
Yep, that worked
|
I wouldn't bother with this one -- it's more of a developer focused testing tool vs something which is useful for end users |
Something for the developers guide? |
Not even that -- it's even "rawer" then that! |
Let me tell you something @nyalldawson , I know a few user quite exited with this new tool. I think it's worth putting the instructions in the users manual. Since It's focused on using processing algorithms, I believe that's the place to add information about it. |
@SrNetoChan I'm referring to the "qgis_bench" tool above! |
AH :-| That makes more sense. |
Seems sensible, but should we also have a section for QGIS command-line utilities/tools? Are there more of them coming up? |
qgis_bench does not seem to be included in the "standard distributions", so I guess that means that we do not need to document it. |
Request for documentation
From pull request qgis/QGIS#34617
Author: @nyalldawson
QGIS version: 3.14 (Feature)
New standalone console tool for running processing algorithms
PR Description:
UPDATE: the final tool is called
qgis_process
, all examples here have been updated to reflect the changeThis new
qgis_transformqgis_process tool allows users to run processing algorithms (both built-in, and those provided by plugins) directly from the console.Running:
qgis_process list
will output a complete list of all available algorithms, grouped by provider.qgis_process plugins
lists available and activated plugins which advertise the hasProcessingProvider metadata option (only these plugins are loaded by the tool)qgis_process help algid
outputs the help and input descriptions for the specified algorithm, e.g.qgis_process help native:centroids
qgis_process run
: runs an algorithm. Parameters are specified by a--param=value
syntax. E.g.or
While running an algorithm a text-based feedback bar is shown, and the operation can be cancelled via CTRL+C
Sponsored by the Swedish User Group
More detail is available in qgis/QGIS-Enhancement-Proposals#140
Still to come (follow up PRs):
Commits tagged with [need-docs] or [FEATURE]
"[FEATURE][processing] New standalone console tool for running processing algorithms\n\nThis new qgis_transform tool allows users to run processing algorithms\n(both built-in, and those provided by plugins) directly from the console.\n\nRunning:\n\n- "qgis_transform list" will output a complete list of all available\nalgorithms, grouped by provider.\n- "qgis_transform plugins" lists available and activated plugins which\nadvertise the hasProcessingProvider metadata option (only these plugins\nare loaded by the tool)\n- "qgis_transform help algid" outputs the help and input descriptions\nfor the specified algorithm, e.g. "qgis_transform help native:centroids"\n\n"qgis_transform run": runs an algorithm. Parameters are specified by a\n"--param=value" syntax. E.g.\n\n qgis_transform run native:centroids --INPUT="my_shapefile.shp" --OUTPUT="centroids.kml"\n\nor\n\n qgis_transform run native:buffer --INPUT=/home/me/my.shp --DISTANCE=20 --OUTPUT=/home/me/buffered.shp\n\nWhile running an algorithm a text-based feedback bar is shown, and the\noperation can be cancelled via CTRL+C\n\nSponsored by the Swedish User Group" "[FEATURE] Allow running model files direct from standalone qgis_process tool"
The text was updated successfully, but these errors were encountered: