Re: [Qgis-user] Using Processing for nightly ETL jobs

2024-05-22 Thread Etienne Trimaille via QGIS-User
Hi,

https://docs.qgis.org/3.34/en/docs/user_manual/processing/standalone.html

Le mer. 22 mai 2024 à 18:52, NOSPAM via QGIS-User 
a écrit :

> Dear List,
>
> has anybody already used QGIS' processing framework for performing
> nightly ETL jobs?
>
> I need to have nightly jobs run that
> 1) download data (e.g. from a WFS server),
> 2) perform some tasks like renaming fields or the like
> 3) and finally load them into a PostGIS database.
>
> My idea would be to design the process using the modeller. How can I
> have the thus created model run non interactively?
>
> Any ideas are welcome
>
> Bernhard
> ___
> 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


Re: [Qgis-user] qgis python error

2024-03-25 Thread Etienne Trimaille via QGIS-User
> I assume that is the latest stable version? 3.22.4

No, the last number (.4 in your case), is the number of bugfix versions. No
new features are added in these bugfix versions.
The stable release on 3.22 is 3.22.16
https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule
And 3.22 and 3.28 are already not maintained.


Le jeu. 21 mars 2024 à 19:36, Don Harter  a écrit :

> OK Thank you.
>
> I am using a stable version from :
>
> deb https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu/ jammy main
>
> I assume that is the latest stable version?
>
> For linux software in general I try to stick with stable versions.
> Oftentimes people make changes and submit them without being fully tested.
> Then I spend more time filling out bug reports instead of working on my
> applications.
>
> I upgraded the plugin and the error message did not appear.  I will see if
> that holds on later runs of qgis.
> On 3/21/24 1:47 PM, Etienne Trimaille wrote:
>
> Hi,
>
> You have installed the plugin "Value tool", you can remove it.
> You should report this issue to the plugin author, there is a bug tracker
> : https://github.com/jorgealmerio/valuetool
>
> You are using QGIS 3.22.4, you should try to upgrade as well, it's old.
>
> Le jeu. 21 mars 2024 à 17:49, Don Harter via QGIS-User <
> qgis-user@lists.osgeo.org> a écrit :
>
>> I am getting a python error now.  Does anyone know why I am getting this
>> now when earlier I wasn't?
>>
>> An error has occurred while executing Python code:
>> ValueError: Unknown format code 'f' for object of type 'str'
>>
>> Traceback (most recent call last):
>>   File 
>> "/home/drh/.local/share/QGIS/QGIS3/profiles/default/python/plugins/valuetool/valuewidget.py",
>>  line 478, in printValue
>> self.labelStatus.setText(self.tr('Coordinate:') + 
>> strFmt.format(position.x(), position.y(),bandvalue))
>> ValueError: Unknown format code 'f' for object of type 'str'
>>
>> Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] QGIS
>> version: 3.22.4-Białowieża Białowieża, exported
>> ___
>> 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


Re: [Qgis-user] qgis python error

2024-03-21 Thread Etienne Trimaille via QGIS-User
Hi,

You have installed the plugin "Value tool", you can remove it.
You should report this issue to the plugin author, there is a bug tracker :
https://github.com/jorgealmerio/valuetool

You are using QGIS 3.22.4, you should try to upgrade as well, it's old.

Le jeu. 21 mars 2024 à 17:49, Don Harter via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> I am getting a python error now.  Does anyone know why I am getting this
> now when earlier I wasn't?
>
> An error has occurred while executing Python code:
> ValueError: Unknown format code 'f' for object of type 'str'
>
> Traceback (most recent call last):
>   File 
> "/home/drh/.local/share/QGIS/QGIS3/profiles/default/python/plugins/valuetool/valuewidget.py",
>  line 478, in printValue
> self.labelStatus.setText(self.tr('Coordinate:') + 
> strFmt.format(position.x(), position.y(),bandvalue))
> ValueError: Unknown format code 'f' for object of type 'str'
>
> Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] QGIS
> version: 3.22.4-Białowieża Białowieża, exported
>
> ___
> 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


Re: [Qgis-user] QGIS Server - GetLegendGraphics request confusion

2023-10-17 Thread Etienne Trimaille via QGIS-User
Hi,
The documentation was updated a few months ago to follow the OGC
specifications.
https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics
versus
https://docs.qgis.org/testing/en/docs/server_manual/services/wms.html#getlegendgraphic


Le mar. 17 oct. 2023 à 09:27, Alessandro Pasotti via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Hi,
>
> QGIS server actually accepts both requests:
>
> else if ( QSTR_COMPARE( req, "GetLegendGraphic" ) || QSTR_COMPARE( req,
> "GetLegendGraphics" ) )
>
>
> On Mon, Oct 16, 2023 at 6:20 PM Jakob Miksch via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> Hi everyone!
>>
>>
>>
>> I have a QGIS Server running. Requesting the legend of a layer works fine
>> as explained in the docs: 3.2. Web Map Service (WMS) — QGIS
>> Documentation documentation
>> 
>>
>> However, I noticed that in QGIS Server the request must be called
>> “GetLegendGraphics” with a trailing “s”, whereas GeoServer (GetLegendGraphic
>> — GeoServer 2.25.x User Manual
>> ),
>> MapServer (WMS Server — MapServer 8.0.1 documentation
>> ),
>> deegree and OpenLayers (OpenLayers v8.1.0 API - Class: ImageWMS
>> )
>> expect the request to be called “GetLegendGraphic” WITHOUT the trailing
>> “s”.
>>
>>
>>
>> Is there a reason why QGIS Server provides legends differently compared
>> to other established geospatial software?
>>
>> Best regards,
>>
>> Jakob
>>
>>
>>
>>
>> Jakob Miksch
>> Consultant
>>
>> +49 170 9036956
>> siticom.online
>>
>>
>>
>> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal •
>> Deutschland
>> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
>> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
>> Umsatzsteuer-ID Nr.: DE 197 925 589
>>
>>
>> ___
>> 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
>>
>
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
> ___
> 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


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread Etienne Trimaille via QGIS-User
Hi,

It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
can see it in the documentation
https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
QGIS_SERVER_LOG_STDERR will send logs to stderr.



Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Laurent,
> Please, try to create the file 'qgislog.log' manually first
> If doesn't works I don't know why
>
> Il mer 3 mag 2023, 18:18 celati Laurent  ha
> scritto:
>
>> Hello,
>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>> /var/log/qgis/qgislog.log
>> Then i set chown www-data /var/log/qgis
>> and sudo chmod 775 /var/log/qgis
>>
>> Then a2ensite XXX.XXX.fr
>> Then i have reload apache systemctl reload apache2
>>
>> But still no qgislog file has been created.
>>
>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>> écrit :
>>
>>> in additions
>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>> antovisc...@gmail.com> ha scritto:
>>>
 hi Laurent,
 I set
 FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
 also,
 and works fine for me

 Saluti

 Antonio


 Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
 qgis-user@lists.osgeo.org> ha scritto:

> Good afternoon,
> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
> log deals with a problem regarding my qgis server logs.
> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
> with ths part of content  :
>
>   # QGIS log
>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>
> And i have create the directories that will store the QGIS Server logs
>
> mkdir -p /var/log/qgis/
> chown www-data:www-data /var/log/qgis
>
> But, there are never no log file created within this folder. Do you
> know why ? Do i have to restart qgis server ?
> I know how to restart apache (systemctl restart apache2).
> But how to restart qgis server ?
>
> Thanks a lot for your guidances.
>
>
>
>
> ___
> 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
>
___
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


Re: [Qgis-user] Determine version of QGIS Server

2022-08-08 Thread Etienne Trimaille via Qgis-user
Le jeu. 4 août 2022 à 11:34, Inka Tauber via Qgis-user <
qgis-user@lists.osgeo.org> a écrit :

> Has there some configuration to be done to put QGIS Server info into
> http-header?
>

In the ticket, it was using Nginx.
But anyway, you don't need that anymore, indeed the "qgis_mapserv.fcgi
--version" is way better now ;-)

Regards


>
>
> Regards,
>
> Inka
>
>
>
>
>
> *Von:* Stefan Giese (WhereGroup) [mailto:stefan.gi...@wheregroup.com]
> *Gesendet:* Donnerstag, 4. August 2022 09:37
> *An:* qgis-user@lists.osgeo.org; (LUNG GUE, 120-1) Tauber, I. <
> inka.tau...@lung.mv-regierung.de>
> *Betreff:* Re: [Qgis-user] Determine version of QGIS Server
>
>
>
> see
> https://github.com/3liz/lizmap-web-client/issues/1346#issuecomment-547895968
>
> Am 04.08.2022 um 09:32 schrieb Inka Tauber via Qgis-user:
>
> Hello,
>
>
>
> how can the version of QGIS Server (qgis_mapserv.fcgi) be determined?
>
>
>
> Thanks,
>
> Inka
>
>
>
>
>
>
>
>
> Allgemeine Datenschutzinformation:
> Der telefonische, schriftliche oder elektronische Kontakt mit dem
> Ministerium für Klimaschutz, Landwirtschaft, ländliche Räume und Umwelt
> Mecklenburg-Vorpommern ist mit der Speicherung und Verarbeitung der von
> Ihnen ggf. mitgeteilten persönlichen Daten verbunden. Rechtsgrundlage
> hierfür ist Art. 6 Absatz 1 Buchstabe e der Datenschutzgrundverordnung
> (DSGVO) der Europäischen Union in Verbindung mit § 4 Abs. 1
> Landesdatenschutzgesetz (DSG M-V).
> Weitere Informationen erhalten Sie hier:
> https://www.regierung-mv.de/Datenschutz
>
> ___
>
> 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
>
> --
>
> Mit freundlichen Grüßen
>
> Stefan Giese
>
> Projektleiter/Consultant
>
> -
>
> Aufwind durch Wissen!
>
> Jetzt neu: Web-Seminare und Online-Schulungen
>
> bei der www.foss-academy.com
>
> -
>
> WhereGroup GmbH
>
> Schwimmbadstr. 2
>
> 79100 Freiburg
>
> Germany
>
>
>
> Tel.: +49 (0)761 / 519 102 - 61
>
> Fax: +49 (0)761 / 519 102 - 11
>
>
>
> stefan.gi...@wheregroup.com
>
> www.wheregroup.com
>
> Geschäftsführer:
>
> Olaf Knopp, Peter Stamm
>
> Amtsgericht Bonn, HRB 9885
>
> ___
> 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


Re: [Qgis-user] Change properties of multiple layer at once

2022-04-04 Thread Etienne Trimaille via Qgis-user
You could use the LayerBoard plugin for that. It's available in the plugin
manager. Possible to change different kinds of properties at once for many
layers.
But AFAIK, this plugin needs some help ;-)

Le ven. 1 avr. 2022 à 12:48, L.W. via Qgis-user 
a écrit :

> as far as I unterstood right, if You use one style, you are able to set in
> expression editor something like
>
> if layer = "layer_id_1", '#99ff',
>
> if layer = "layer_id_2", '#9900ff00,
>
> The code above show the way the right syntax is in help panel.
>
> This works for nearly every option in the style dock, save this style.
>
> Then go to Layer-dock and click with right mouse on the layer you edited
> right now, point to "copy style > style".
>
> If your layers are organized in a group (I recommend for this step), than
> you can say "paste style" to this group and the style is on every layer ...
> it's magic :-)
>
>
> Am 01.04.2022 um 12:04 schrieb Roland Spielhofer via Qgis-user:
>
> Hi,
> thanks for the tip!
> The layers are all of the same type (content is the same, they represent
> different days).
> I wanted to preserve the different fill colors and just change the opacity
> and pen stroke.
> Therefore copy stlye does not work.
>
> Anyway, I adjusted the layers manually meanwhile - was just curious if
> there is an elegant way to do this and save time next time.
>
> Regards,
> Roland
>
>
> *Gesendet:* Freitag, 01. April 2022 um 10:37 Uhr
> *Von:* "L.W. via Qgis-user" 
> 
> *An:* "Raymond Nijssen"  ,
> qgis-user@lists.osgeo.org
> *Betreff:* Re: [Qgis-user] Change properties of multiple layer at once
> May you change the style itself and set the same style to all layers.
>
> You can change i.e. color of lines by "type of line" / attribute values
> so you can use one style for multiple layers.
>
>
> Am 01.04.2022 um 10:13 schrieb Raymond Nijssen via Qgis-user:
> > Don't know how to do that using the GUI, but for the opacity you can
> > use these 2 lines of python in the QGIS python console. It will set
> > all your selected layers to 50% opacity.
> >
> >
> > for layer in iface.layerTreeView().selectedLayers():
> > layer.setOpacity(.5)
> >
> >
> > I think the stroke style is harder to change because all these layers
> > can have different symbologies.
> >
> > Hope it helps!
> > Raymond
> >
> >
> > On 01-04-2022 09:47, Roland Spielhofer via Qgis-user wrote:
> >> Hi,
> >> I have a set of similar layers where I would like to change certain
> >> properties for all layers in the same way.
> >> * change opacity to 50%
> >> * change stroke style to "no pen"
> >> When I select multiple layers and open properties -> symbology, I
> >> just change the styling of the first layer, not for all.
> >> Is there a way to do this?
> >> Regards,
> >> Roland
> >>
> >> ___
> >> 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
> ___
> 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 listqgis-u...@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
>
___
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