#
Managing QGIS Projects
A QGIS project is a collection of layers and settings that make up a QGIS map. Pozi uses these projects as layer catalogues, each of which is displayed in Pozi as a layer group.
The workflow for getting a project into Pozi are as follows:
create project configure web services start adding layers register project for Pozi
#
Create Project
If you have an existing QGIS project that's already configured for Pozi, you can fast-track the steps below.
Save a copy of an existing project, remove all layers (except for any basemap that you might be using as a background layer), and skip to
Create new project from scratch:
- open QGIS
- Project > Save > specify name and path of new project file (
.qgs
) - note the exact file path of project file (needed for subsequent configuration below)
#
Add Basemap
It's useful to include a basemap in the project to provide visual context for the layers you will add on top.
#
Example
If you've set up 'Vicmap Basemap' as a WMS/WMTS source, you can easily one of its layers as your basemap.
Browser > WMS/WMTS > Vicmap Basemap > Vicmap Basemap - Web Mercator - Cartographic
#
Configure Web Services
#
Construct Advertised URL
The project's Advertised URL is a URL at which WMS and WFS requests can interact with the layers in the project file. Essentially, the project file needs a reference to itself in a URL format.
This step involves constructing the URL text that will be used in subsequent configuration below. You can use a temporary blank text document in Notepad to compile the text.
Combine the details below to create your project's Advertised URL:
- server URL (default server URL is
https://local.pozi.com/
, but check your local setup for any custom endpoint) - service endpoint (eg
iis/qgisserver?
) - QGIS project file path, with any backslashes replaced with forward slashes (eg
MAP=C:/Program%20Files%20(x86)/Pozi/userdata/local/property.qgs
)
Combine these three text strings to create the Advertised URL.
Example Advertised URL:
Copy the URL to your clipboard for subsequent configuration below.
#
Enable Web Services
- Project > Properties > QGIS Server
- update WMS capabilities settings
Exclude layers
(tick) > add > pick any background layers you don't need to see in PoziAdd geometry to feature response
: tick onAdvertised URL
: enter Advertised URL (from above)
- update WMTS capabilities settings
Published layers > Project > Published
: tick onAdvertised URL
: enter Advertised URL
- update the WFS capabilities settings:
Advertised URL
: enter Advertised URL
- OK
- OK
- Project > Save (
Ctrl
+S
)
#
Further Settings
A comprehensive guide for configuring QGIS projects for publishing layers via WMS/WFS can be found at:
https://docs.qgis.org/latest/en/docs/server_manual/getting_started.html#creatingwmsfromproject
#
Add Layers
See Configuring Layers for details about adding and configuring new layers within your project.
Remember to use only UNC paths for file-based layers.
When you're done, remember to enable any layers for WFS if required.
#
Test Project Load Performance
The speed at which Pozi can access layers from the QGIS project is limited by how fast QGIS can access the layers from their respective data sources.
To ensure that QGIS is able to access the layers quickly, check the project's performance using QGIS's debugging tool to identify any performance issues.
View > Panels > Debugging/Development Tools > Profiler (clock button)
As soon as you load your QGIS project, a new category called Project Load
will be available. Select it from the category list.
Expand the entry called Reading map layers
in the profiler tree to see all of the QGIS project layers and their corresponding loading time.
If the results show any layer that takes more than a fraction of a second to load, there may be an issue with the network or database that is worth investigating.
#
Register Project
#
Obtain GetProjectSettings URL
In a text editor, construct a GetProjectSettings
URL by combining the following:
- Advertised URL from above (eg
https://local.pozi.com/iis/qgisserver?MAP=C:/Program%20Files%20(x86)/Pozi/userdata/local/property.qgs
) - GetProjectSettings request:
&service=WMS&REQUEST=GetProjectSettings
Combine these text strings to create a GetProjectSettings
URL.
Example GetProjectSettings
URL:
Test this URL by pasting it in your browser and check that you get a valid response that lists the available layers.
#
Submit Helpdesk Ticket
Email support@pozi.com with these details:
- subject: New layer catalogue
- name of new layer group to appear in Pozi layer panel
- order in which the layer group is to appear in the Pozi Layer Panel (relative to an existing layer group)
GetProjectSettings
URL (from above)
Within 24 hours, the new layer group will be configured and available for users to view in Pozi.
During this time, and any time afterwards, you may continue to add and configure layers in your new project.