geraldo / qgs-layer-parser

Parse QGIS project file and create JSON config file
GNU General Public License v3.0
0 stars 0 forks source link

Use published WFS layers and export SLD #2

Closed geraldo closed 2 years ago

geraldo commented 2 years ago

In case a layer is checked as publishing it as WFS in QGIS Server Settings, we want to use WFS instead of WMS. So the parser checks the list of WFS layers and depending of this value, "vectorial"=true|false is added to the json file.

For groups and layers defined als vectorial, we are going to export SLD styles and write them as files to hd using API method layer.saveSldStyle().

geraldo commented 2 years ago

Check if layer is WFS with: QgsProject.instance().readListEntry('WFSLayers', '/')

(see https://gis.stackexchange.com/questions/412953/read-wfs-layers-with-pyqgis)