[Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint

michal.wloga at envirosolutions.pl michal.wloga at envirosolutions.pl
Mon Mar 22 03:50:38 PDT 2021


There is a bug in lizmap backend. Some signs (I believe brackets) are not url-encoded. It needs to be encoded to get a result from QGIS Server

 

Regards,

EnviroSolutions Sp. z o. o.
Michał Włoga
 <mailto:coo at envirosolutions.pl> coo at envirosolutions.pl
 <http://www.envirosolutions.pl/szkolenia> www.envirosolutions.pl

 <https://www.envirosolutions.pl/news/118/129/Wtyczka-QGIS---Pobieracz-Danych-GUGiK.html> Pobieracz Danych GUGiK – laureat nagrody GUGiK na najlepsze wykorzystanie danych i usług GUGiK w 2020 r.

 

 

From: Lizmap [mailto:lizmap-bounces at lists.osgeo.org] On Behalf Of Courcelle, Catherine
Sent: Monday, March 22, 2021 7:57 AM
To: lizmap at lists.osgeo.org
Subject: Re: [Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint

 

Many thanks for your reply,

 

I had already followed the instructions on this web page… But without success. May be a problem with the configuration of Qgis server (see log below).That's why I'm looking for a solution.

 <https://urldefense.com/v3/__https:/docs.lizmap.com/current/en/publish/configuration/print.html*layout-with-an-atlas-when-using-a-popup__;Iw!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9veGkumOcw$> https://docs.lizmap.com/current/en/publish/configuration/print.html#layout-with-an-atlas-when-using-a-popup

 

I did, however, create an atlas on the popup layer in Qgis. 

Are we talking about an atlas in Qgis or an atlas in the Lizmap plugin? 

 

I wish you an excellent day!

Catherine

 

De : Etienne Trimaille <etrimaille at 3liz.com <mailto:etrimaille at 3liz.com> > 
Envoyé : lundi 22 mars 2021 05:50
À : Courcelle, Catherine <Catherine.Courcelle at swecobelgium.be <mailto:Catherine.Courcelle at swecobelgium.be> >
Cc : lizmap at lists.osgeo.org <mailto:lizmap at lists.osgeo.org> 
Objet : Re: [Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint

 

Hi,

 

Le ven. 19 mars 2021 à 21:05, Courcelle, Catherine <Catherine.Courcelle at swecobelgium.be <mailto:Catherine.Courcelle at swecobelgium.be> > a écrit :

Thank you Immo,

 

I followed the tutorial and reproduced the manipulations.

 

His tutorial is not using Lizmap, so the way to make a request to AtlasPrint is different. In his tutorial, he is creating the link "manually", by calling QGIS Server etc ...

 

 Maybe starting from Lizmap the link must be different? http://localhost/qgis/qgis_mapserv.fcgi.exe <https://urldefense.com/v3/__http:/localhost/qgis/qgis_mapserv.fcgi.exe__;!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9vcNxD3n6w$> ?.....

 

Yes, Lizmap only needs a layout with atlas enabled on that particular feature.

That's it :)

Lizmap will manage to create the link, etc.

https://docs.lizmap.com/current/en/publish/configuration/print.html#layout-with-an-atlas-when-using-a-popup <https://urldefense.com/v3/__https:/docs.lizmap.com/current/en/publish/configuration/print.html*layout-with-an-atlas-when-using-a-popup__;Iw!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9veGkumOcw$> 

 

 

Regards,

                Catherine

 

 

 

De : Lizmap <lizmap-bounces at lists.osgeo.org <mailto:lizmap-bounces at lists.osgeo.org> > De la part de Immo Blecher
Envoyé : vendredi 19 mars 2021 10:14
À : lizmap at lists.osgeo.org <mailto:lizmap at lists.osgeo.org> 
Objet : Re: [Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint

 

Hi Catherine,

Did you have a look at Tim's Youtube https://youtu.be/I8z06SO7ePk <https://urldefense.com/v3/__https:/youtu.be/I8z06SO7ePk__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ8hAkTf1w$> ? I think it has some details about the environment variable and the AtlasPrint. Maybe that helps.

Regards

Immo

On 2021/03/19 10:46, Courcelle, Catherine wrote:

Hi, 

I am currently working on Windows server but if it works, I may have a time budget to redo tests with Debian for example.

I installed Apache, PostgreSQL, Lizmap, QgisServer by following the tutorials online.

 

The part that blocks me is the printing of popups in the Lizmap interface. I obviously cannot use the Qgis server plugins.

 

No problem to display popups in Lizmap, I have a nice Qgis drag and drop form. I created a layout with an atlas in Qgis with the fields to be displayed on an A4 page. I looked at the link https://github.com/3liz/qgis <https://urldefense.com/v3/__https:/github.com/3liz/qgis__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ8aP5oUBQ$>  atlasprint.

 

It seems to me that the python extensions for Qgis server are not read, whether it is wfsOutputExtension or atlasprint.

2 errors are highlighted in the qgis server log:


* USERPROFILE environment variable is missing
* Python bindings for Qt and QGIS server are not found

 

Can someone help me to find a solution?

 

13:37:02 INFO Server[8800]: Qgis Server Settings: 

13:37:02 INFO Server[8800]:   - QGIS_OPTIONS_PATH / '' (Override the default path for user configuration): '' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_PARALLEL_RENDERING / '/qgis/parallel_rendering' (Activate/Deactivate parallel rendering for WMS getMap request): 'false' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_MAX_THREADS / '/qgis/max_threads' (Number of threads to use when parallel rendering is activated): '-1' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_LEVEL / '' (Log level): '0' (read from ENVIRONMENT_VARIABLE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_FILE / '' (Log file): 'C:\webserver\Apache24\logs\qgis_server.log' (read from ENVIRONMENT_VARIABLE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_LOG_STDERR / '' (Activate/Deactivate logging to stderr): 'false' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_PROJECT_FILE / '' (QGIS project file): '' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - MAX_CACHE_LAYERS / '' (Specify the maximum number of cached layers): '100' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_IGNORE_BAD_LAYERS / '' (Ignore bad layers): 'false' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_CACHE_DIRECTORY / '/cache/directory' (Specify the cache directory): 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/cache' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_CACHE_SIZE / '/cache/size' (Specify the cache size): '52428800' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_SHOW_GROUP_SEPARATOR / '/locale/showGroupSeparator' (Show group (thousands) separator): 'false' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE / '/locale/userLocale' (Override system locale): '' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_WMS_MAX_HEIGHT / '/qgis/max_wms_height' (Maximum height for a WMS request. The lower one of this and the project configuration is used.): '-1' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_WMS_MAX_WIDTH / '/qgis/max_wms_width' (Maximum width for a WMS request. The most conservative between this and the project one is used): '-1' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_API_RESOURCES_DIRECTORY / '/qgis/server_api_resources_directory' (Base directory where HTML templates and static assets (e.g. images, js and css files) are searched for): 'C:/OSGeo4W64/apps/qgis-ltr/resources/server/api' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]:   - QGIS_SERVER_API_WFS3_MAX_LIMIT / '/qgis/server_api_wfs3_max_limit' (Maximum value for "limit" in a features request, defaults to 10000): '10000' (read from DEFAULT_VALUE)

13:37:02 INFO Server[8800]: Ini file used to initialize settings: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini

13:37:02 INFO Server[8800]: cacheDirectory: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3/profiles/default/cache/

13:37:02 INFO Server[8800]: maximumCacheSize: 52428800

13:37:02 INFO Server[8800]: Prefix  PATH: C:/OSGeo4W64/apps/qgis-ltr

13:37:02 INFO Server[8800]: Plugin  PATH: C:/OSGeo4W64/apps/qgis-ltr/plugins

13:37:02 INFO Server[8800]: PkgData PATH: C:/OSGeo4W64/apps/qgis-ltr/.

13:37:02 INFO Server[8800]: User DB PATH: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis.db

13:37:02 INFO Server[8800]: Auth DB PATH: C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db

13:37:02 INFO Server[8800]: SVG PATHS: C:/OSGeo4W64/apps/qgis-ltr/./svg/;C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/

13:37:03 INFO Server[8800]: Adding service SampleService 1.0

13:37:03 INFO Server[8800]: Adding service WCS 1.0.0

13:37:03 INFO Server[8800]: Adding service WFS 1.1.0

13:37:03 WARNING [8800]: Adding API OGC WFS3 (Draft) 

13:37:03 INFO Server[8800]: Adding service WMS 1.3.0

13:37:03 INFO Server[8800]: Adding service WMTS 1.0.0

13:37:03 INFO Server[8800]: Server initialized

13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: load library qgispython (3.10.10)

13:37:03 INFO ..\..\..\src\server\qgsserverplugins.cpp[8800]: Python support library loaded successfully.

13:37:03 WARNING Python error[8800]: An error occurred during execution of following code:

os.environ['HOME']=os.environ['USERPROFILE']

 

 

Traceback (most recent call last):

  File "", line 1, in 

  File "C:\OSGeo4W64\apps\Python37\lib\os.py", line 681, in __getitem__

    raise KeyError(key) from None

KeyError: 'USERPROFILE'

 

Python version:

3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]

 

QGIS version:

3.10.10-A Coruña 'A Coruña', 8b051b9a43

 

Python path:

['C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\bin', 'C:\\OSGeo4W64\\apps\\Python37', 'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages']

13:37:03 WARNING Python error[8800]: Couldn't load SIP module.

Python support will be disabled.

 

Traceback (most recent call last):

  File "", line 1, in 

ModuleNotFoundError: No module named 'qgis.PyQt'

 

Python version:

3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]

 

QGIS version:

3.10.10-A Coruña 'A Coruña', 8b051b9a43

 

Python path:

['C:/OSGeo4W64/apps/qgis-ltr/./python', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins', 'C:/OSGeo4W64/apps/qgis-ltr/./python/plugins', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\bin', 'C:\\OSGeo4W64\\apps\\Python37', 'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages']

13:37:03 INFO Server[8800]: No server python plugins are available

13:37:03 INFO Server[8800]: ******************** New request ***************

13:37:03 INFO Server[8800]: Request URL: http://localhost/qgis/qgis_mapserv.fcgi.exe?service=LIZMAP <https://urldefense.com/v3/__http:/localhost/qgis/qgis_mapserv.fcgi.exe?service=LIZMAP&request=GetServerSettings&map=C*3A*5Cwebserver*5Cwebapp*5Cprod*5Cmaprep*5Cdata*5Cafkoppelingen*2Fafkoppelingen.qgs__;JSUlJSUlJSU!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ_yJN-9_w$> &request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen.qgs

13:37:03 INFO Server[8800]: Environment:

13:37:03 INFO Server[8800]: ------------------------------------------------

13:37:03 INFO Server[8800]: SERVER_NAME: localhost

13:37:03 INFO Server[8800]: REQUEST_URI: /qgis/qgis_mapserv.fcgi.exe?service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen%2Eqgs

13:37:03 INFO Server[8800]: SCRIPT_NAME: /qgis/qgis_mapserv.fcgi.exe

13:37:03 INFO Server[8800]: REMOTE_ADDR: ::1

13:37:03 INFO Server[8800]: SERVER_PORT: 80

13:37:03 INFO Server[8800]: QUERY_STRING: service=LIZMAP&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen%2Eqgs

13:37:03 INFO Server[8800]: REQUEST_METHOD: GET

13:37:03 INFO Server[8800]: HTTP_ACCEPT: */*

13:37:03 INFO Server[8800]: HTTP_USER_AGENT: Lizmap

13:37:03 INFO Server[8800]: MAP:C:\webserver\webapp\prod\maprep\data\afkoppelingen/afkoppelingen.qgs

13:37:03 INFO Server[8800]: REQUEST:GetServerSettings

13:37:03 INFO Server[8800]: SERVICE:LIZMAP

13:37:04 WARNING PostGIS[8800]: NOTICE: row number 0 is out of range 0..-1

13:37:04 WARNING [8800]: Service LIZMAP is not registered

13:37:04 WARNING Server[8800]: <ServiceExceptionReport xmlns= <https://urldefense.com/v3/__http:/www.opengis.net/ogc__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ8qh93X1w$> "http://www.opengis.net/ogc" version="1.3.0">

<ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>

</ServiceExceptionReport>

 

 

_______________________________________________
Lizmap mailing list
Lizmap at lists.osgeo.org <mailto:Lizmap at lists.osgeo.org> 
https://lists.osgeo.org/mailman/listinfo/lizmap <https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/lizmap__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ_kRwCCVA$> 

-- 

Immo F. Blecher
Street: 50 Lynedoch Eco Village, Lynedoch, Stellenbosch, 7603, South Africa
Postal: PO Box 74, Lynedoch, 7603, South Africa
Cell: +27 83 272 6791 | Office: +27 81 359 3704 | Fax: +27 81 359 3704
Email: immo at blecher.co.za <mailto:immo at blecher.co.za>  | immob19 at gmail.com <mailto:immob19 at gmail.com> 
Internet: https://www.blecher.co.za/ <https://urldefense.com/v3/__https:/www.blecher.co.za/__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ_JRmRQwg$> 

Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy.

IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.

_______________________________________________
Lizmap mailing list
Lizmap at lists.osgeo.org <mailto:Lizmap at lists.osgeo.org> 
https://lists.osgeo.org/mailman/listinfo/lizmap <https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/lizmap__;!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9vcwv_2UNA$> 



-- 

Etienne Trimaille 
Ingénieur géomaticien 
 <https://urldefense.com/v3/__http:/www.3liz.com__;!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9vfITBLlMQ$> www.3liz.com 

WhatsApp uniquement le matin +33 6 12 93 11 39 <https://urldefense.com/v3/__https:/wa.me/0033612931139__;!!HBVxBjZwpQ!njuBsDamkE6_b1TgTr5nRd0fUPFBAKrDbzfbYo4QzfEd8s0fU2gksaY93qSlaDO8UOiA9vehP7Tx6Q$> 


Siège social 
73, allée Kleber 
Boulevard de Strasbourg 
34000 Montpellier 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20210322/3e32bff2/attachment-0001.html>


More information about the Lizmap mailing list