visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

WMS / WMTS: Support formats other than PNG

Open ptbrowne opened this issue 7 months ago • 0 comments

PNG format is hardcoded for wmts / wms layers For better adherence to the spec, we should parse from the capabilities the formats that are present and ask for available formats, with png in priority so that we are able to set TRANSPARENT.

          @ptbrowne while you may prefer png in cases both are available OTOH many WMTS only offer one single format, i.e. https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml offers jpeg for many layers (even if that one is not KVP, it still shows the clear trend: jpeg occurs frequently). It's a well defined param in the spec.

see also WMTS GetTile request.xsd image and OpenGIS Web Map Tile Service Implementation Standard p34 image HTH for OCG conformance 👍

Originally posted by @Rdataflow in https://github.com/visualize-admin/visualization-tool/pull/2306#discussion_r2088521381

ptbrowne avatar May 15 '25 08:05 ptbrowne