-
Notifications
You must be signed in to change notification settings - Fork 31
5.1. QGIS
To publish QGIS project for Web, read this part in official documentation - Creating a WMS/WFS/WCS server from a QGIS project.
Recommended QGIS Settings for EQWC. Go to Project Settings:
Set title of your project displayed in EQWC and also stored in database for use in gisportal.
With gisportal you can easily override QGIS Project title with new value (does not modify QGIS project file).
Set project CRS to use with EQWC. Read also this about custom CRS in EQWC
Your data can be in other coordinate systems with On the fly re-projection, but note this might slow down QGIS Server on larger datasets.
- Enable Advertised Extent to set up Start Extent of Web Client (optional)
- Enable CRS Restrictions with Used button
- Enable Use layer ids as names (REQUIRED)
- Enable Add geometry to feature response (RECOMMENDED SINCE QGIS 3.4)
This will allow actions to select and display each feature geometry (example from Identify Window). In case of Editing plugin also Edit attributes icon is added.
FIELDS
For each layer you can configure under fields tab:
- Fields to show up in GetFeatureInfo and Table results, by selecting WMS under specific field.
- Use friendly field aliases for display information, without changing real field names, under comment (optional).
HTML CONTENT
Normal Identify on layer feature contains WMS published fields (or corresponding aliases) and their values as text or hyperlink. You can include HTML snippet to be added for each Identify result and display dynamic content regarding your data.
Example to display images in Identify Window (GetFeatureInfo result):
- Below are Attributes for layer country
- Images are available on Web in this folder
- In order to display country image of Identify result this HTML Snippet is added to Country properties - Display part
- Result
Since version 1.9.x EQWC supports more styles defined per layer in QGIS. User can change default style using layer context menu.
Legend will be updated and selected style will also be used for printing (legend in Print composer must be set to auto update!).
Important Note: When having 2 or more styles on layer, the one saved by default in project should be named also "default".