Hi! Good news! Thanks. I wonder if you tried to connect to a PostGIS database from command line. As a parameter. In graphical mode it works and looks like:
'postgres://dbname=\'geodb\' host=servername port=5432 user=\'user\' password=\'pwd\' sslmode=disable key=\'UNIK\' estimatedmetadata=true srid=3008 type=PolygonZ checkPrimaryKeyUnicity=\'1\' table=\"pri\".\"byggnad_\" (geom)' If it's possible in cmd I don't know how to format it properly. Karl-Magnus Jönsson -----Ursprungligt meddelande----- Från: Qgis-user <qgis-user-boun...@lists.osgeo.org> För Christoph Jung Skickat: den 12 mars 2021 06:50 Till: Nyall Dawson <nyall.daw...@gmail.com> Kopia: qgis-user <qgis-user@lists.osgeo.org> Ämne: Re: [Qgis-user] Save log to file via cmd That’s great, Nyall. Thank you for your effort :) Regards, Christoph > Am 11.03.2021 um 23:46 schrieb Nyall Dawson <nyall.daw...@gmail.com>: > > On Tue, 9 Mar 2021 at 00:41, Christoph Jung <jagodki...@gmail.com> wrote: >> >> Hello everyone, >> >> I created a model and added the function “Save log to file” at the end of my >> model. If I start the model directly in the QGIS application, it works fine >> (the log file will be created and contains information). >> >> Now I want to call this model from the command line to schedule this task. I >> created a batch file, setting up the osgeo4w environment and calling the >> model via qgis_processing-qgis-ltr in this script. The log file will be >> created, but there is no information in it. There is no error message or >> something else in the command prompt too. Does anybody has an idea how I >> could get the information in my log files when I call my model via command >> line? > > Thanks, fixed here: https://github.com/qgis/QGIS/pull/42208/files > > Nyall _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user