Server
As part of your site’s Pozi implementation, your Pozi support provider will expertly install and configure the components and dependencies to transform your on-premise or virtual server into a powerful GIS server.
This page is your reference of the installed components.
Installation and Configuration
OSGeo4W
We use OSGeo4W to download and install the packages that are necessary to run QGIS Server.
- Desktop
qgis-ltr
- Libs
gdal-ecwgdal-mss
- Web
qgis-ltr-server
The default installation location is C:\OSGeo4w\.
IIS
- Site:
(your server)\Sites\Default Web Site\Pozi\QgisServer - FastCGI:
(your server) > FastCGI > qgis_mapserv.fcgi.exe - Application Pool:
(your server)\Application Pools\PoziQgisServer
QGIS Server Log
QGIS Server logs activity in the log file at C:\Pozi\IIS\QgisServer\qgis_server.log. By default, the IIS environment variable QGIS_SERVER_LOG_LEVEL value is set to 1 to capture warnings and critical events.
If you want to capture all activity for troubleshooting purposes, set the value to 0.
IIS > select server > FastCGI Settings > select qgis_mapserv.fcgi.exe > Edit > Environment variables > set QGIS_SERVER_LOG_LEVEL to 0.
More information about QGIS log levels is at https://docs.qgis.org/latest/en/docs/server_manual/config.html#qgis-server-log-level
Remember to set the log level back to 1 upon completion of troubleshooting to avoid the log file growing to an excessive size.
Service User
QGIS Server is configured to run using a ‘service user’ account on your organisation’s domain.
If you encounter issues with the QGIS Server service that don’t seem to affect QGIS Desktop, it may be because the service user account doesn’t have sufficient permissions.
This user account may be named PoziService or similar. You can check the name of service user account in IIS:
IIS > (select server) > Application Pools > PoziQgisServer > Advanced settings > Identity > Application Pool Identity > Custom account
Ensure that this domain user account is current (ie, has not expired) and has the permissions outlined at prerequisites.
Pozi Publisher
Pozi Publisher is a PowerShell script designed to run as a scheduled task to bundle up and export layers, styles and settings from specific QGIS projects for use by the public.
Default installation path: C:\Pozi\Publisher
Miscellaneous
- WFS Output Extension: This extension for QGIS Server enables users to request various formats in which to download data.
- sourced from https://github.com/3liz/qgis-wfsOutputExtension/releases/latest
- installed at
C:\OSGeo4W\apps\qgis-ltr\plugins\wfsOutputExtension
- FontAwesome: A library containing thousands of expertly designed icons to use as map symbols.
- installed at
C:\Pozi\QGIS Assets\Pozi SVGs\ - configured in QGIS while logged in as the Pozi Service user
- installed at
Testing
The following URLs can be checked to confirm that QGIS Server is working and available from various locations:
- On the server: http://localhost/pozi/qgisserver/wfs3.html
- On the network: http://
/pozi/qgisserver/wfs3.html - On the web: https://poziserver-
.msappproxy.net/pozi/qgisserver/wfs3.html
To view a specific QGIS project’s catalogue, construct a GetProjectSettings request in the following format, substituting in the file path of the project in the MAP parameter (replacing backslashes with forward slashes):
http://localhost/Pozi/QgisServer?MAP=<qgis-project-file-path.qgs>&service=WMS&REQUEST=GetProjectSettings