[Lizmap] Lizmap Qgis Server > Plugins wfsOutputExtension & atlasprint
Immo Blecher
immo at blecher.co.za
Fri Mar 19 07:13:04 PDT 2021
Yes,
I think you need to have the mapserv.fcgi stuff in your URL. So:
http://localhost/qgis/qgis_mapserv.fcgi.exe
<http://localhost/qgis/qgis_mapserv.fcgi.exe>/map/?SERVICE=ATLAS&REQUEST=GetPrint&TEMPLATE=HuisInfo%20Layout&CRS=EPSG:31370&EXP_FILTER=idadres%3D18227
or something, depending on your GetCapabilities URL. Just check that
one. Also have a look at Tim's URL again...maybe that helps.
Regards
Immo
On 2021/03/19 15:21, Courcelle, Catherine wrote:
>
> Thank you Immo,
>
> I followed the tutorial and reproduced the manipulations.
>
> I think now I just have an error in the URL.
>
> Expression in the table displayed in the QGIS project:
>
> <a href="/map/?SERVICE=ATLAS&REQUEST=GetPrint&TEMPLATE=HuisInfo
> Layout&CRS=EPSG:31370&EXP_FILTER=idadres%3D1"target="_blank">Vieuw
> report</a>
>
> Message when I click on the link in the popup and the web page opens
> (http://localhost/map/?SERVICE=ATLAS&REQUEST=GetPrint&TEMPLATE=HuisInfo%20Layout&CRS=EPSG:31370&EXP_FILTER=idadres%3D18227
> <http://localhost/map/?SERVICE=ATLAS&REQUEST=GetPrint&TEMPLATE=HuisInfo%20Layout&CRS=EPSG:31370&EXP_FILTER=idadres%3D18227>)
>
> Not Found The requested URL was not found on this server.
>
> Maybe starting from Lizmap the link must be different?
> http://localhost/qgis/qgis_mapserv.fcgi.exe
> <http://localhost/qgis/qgis_mapserv.fcgi.exe>?.....
>
> Regards,
>
> Catherine
>
> *De :*Lizmap <lizmap-bounces at lists.osgeo.org> *De la part de* Immo Blecher
> *Envoyé :* vendredi 19 mars 2021 10:14
> *À :* 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&request=GetServerSettings&map=C%3A%5Cwebserver%5Cwebapp%5Cprod%5Cmaprep%5Cdata%5Cafkoppelingen%2Fafkoppelingen.qgs
> <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$>
>
> 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="http://www.opengis.net/ogc"
> <https://urldefense.com/v3/__http:/www.opengis.net/ogc__;!!HBVxBjZwpQ!gXKmhYDm5IMjUOQ6yPV-a7_Z92fPWAhJZ0eOP6b891gIc4Adgy8j8Tw0WOlY8EJjY5DywQ8qh93X1w$>
> 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
> https://lists.osgeo.org/mailman/listinfo/lizmap
--
*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://www.blecher.co.za/>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20210319/306c38f8/attachment-0001.html>
More information about the Lizmap
mailing list