[Qgis-user] QGIS Server - GetLegendGraphics request confusion

Jakob Miksch jakob.miksch at siticom.de
Mon Oct 16 09:19:16 PDT 2023


Hi everyone!

I have a QGIS Server running. Requesting the legend of a layer works fine as explained in the docs: 3.2. Web Map Service (WMS) - QGIS Documentation documentation<https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics>
However, I noticed that in QGIS Server the request must be called "GetLegendGraphics" with a trailing "s", whereas GeoServer (GetLegendGraphic - GeoServer 2.25.x User Manual<https://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html>), MapServer (WMS Server - MapServer 8.0.1 documentation<https://mapserver.org/de/ogc/wms_server.html#getlegendgraphic-request>), deegree and OpenLayers (OpenLayers v8.1.0 API - Class: ImageWMS<https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html#getLegendUrl>) expect the request to be called "GetLegendGraphic" WITHOUT the trailing "s".

Is there a reason why QGIS Server provides legends differently compared to other established geospatial software?

Best regards,
Jakob

 [cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



        siticom GmbH * Werner-von-Siemens-Stra?e 2-6 * 76646 Bruchsal * Deutschland
Gesch?ftsf?hrer: J?rgen Hatzipantelis, Stefan H?ltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20231016/92e54e16/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png
Type: image/png
Size: 14960 bytes
Desc: siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20231016/92e54e16/attachment.png>


More information about the QGIS-User mailing list