Skip to content

Commit c847713

Browse files
committed
Warn about checked WMSUseLayerIDs in qgis projects
1 parent 4ea964e commit c847713

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/config_generator/qgs_reader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ def read(self):
107107
]
108108
self.qgis_version = major * 10000 + minor * 100 + rev
109109

110+
# Check if WMSUseLayerIDs is set
111+
wmsUseLayerIds = self.root.find('./properties/WMSUseLayerIDs')
112+
if wmsUseLayerIds is not None and wmsUseLayerIds.text == "true":
113+
self.logger.warning(
114+
"'Use layer ids as names' is checked in the QGIS Server properites of '%s', which is not properly supported by QWC2"
115+
% qgs_filename
116+
)
117+
110118
except Exception as e:
111119
self.logger.error(e)
112120
return False

0 commit comments

Comments
 (0)