Skip to content

Commit

Permalink
Warn about checked WMSUseLayerIDs in qgis projects
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Sep 17, 2024
1 parent 4ea964e commit c847713
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/config_generator/qgs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ def read(self):
]
self.qgis_version = major * 10000 + minor * 100 + rev

# Check if WMSUseLayerIDs is set
wmsUseLayerIds = self.root.find('./properties/WMSUseLayerIDs')
if wmsUseLayerIds is not None and wmsUseLayerIds.text == "true":
self.logger.warning(
"'Use layer ids as names' is checked in the QGIS Server properites of '%s', which is not properly supported by QWC2"
% qgs_filename
)

except Exception as e:
self.logger.error(e)
return False
Expand Down

0 comments on commit c847713

Please sign in to comment.