Skip to content
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

Output qgis_process Command Line Results on the Terminal #37465

Closed
Dan-Eli opened this issue Jun 29, 2020 · 4 comments
Closed

Output qgis_process Command Line Results on the Terminal #37465

Dan-Eli opened this issue Jun 29, 2020 · 4 comments
Labels
Feature Request Feedback Waiting on the submitter for answers

Comments

@Dan-Eli
Copy link

Dan-Eli commented Jun 29, 2020

QGIS 3.14 comes with a very interesting new features qgis_process which is a new standalone console tool for running processing algorithms.

I tested this new tool, it's working well but the first time I used it, I tought it was not working as it displayed nothing on the screen. Only after I requested to redirect the output: StdOut and StdErr to a file that I was able to see the results by printing the content of the files.

qgis_process list >stdout.txt 2>stderr.txt

qgis_process will be used a lot by organizations that need to automate and batch geo spatial processing. It would be very useful that output (stdout and stderr) are sent directly on the terminal.

Note: This behaviour was tested on Windows 10, I do not know if it's the same on Mac or Linux

@Dan-Eli Dan-Eli changed the title QGIS Output Command Line Results on the Terminal Output qgis_process Command Line Results on the Terminal Jun 29, 2020
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jul 7, 2020

@Dan-Eli, I think this is a bug on Windows OS.
On GNU/Linux (Ubuntu 20.04) the output of e.g. qgis_process list is directly displayed in the terminal window, while I can confirm that it is not displayed on Windows 10 using the OSGeo4W Shell as you already reported.

@gioman gioman added the Feedback Waiting on the submitter for answers label Jul 7, 2020
@Dan-Eli
Copy link
Author

Dan-Eli commented Jul 7, 2020

It's also the same thing for qgis command line which I understand is not used very often

C:\OSGeo4W64\bin\qgis-bin.exe --version

Nothing is displayed on the screen

C:\OSGeo4W64\bin\qgis-bin.exe --help

Will pop up a new window on the screen

This is true also for prior to QGIS 3.14 and on Windows

@gioman
Copy link
Contributor

gioman commented Jul 7, 2020

I understand is not used very often

@Dan-Eli maybe because is a brand new functionality :)

@Dan-Eli
Copy link
Author

Dan-Eli commented Jul 7, 2020

@gioman, In my last post I was not talking about the new qgis_process tool but I was talking about C:\OSGeo4W64\bin\qgis-bin.exe, the QGIS command line which is there since a very long time but not use very often in command line mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants