From 916457e2ac76d1aebb619465deea927dc092d4ff Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Tue, 8 Oct 2024 15:55:38 +0200 Subject: [PATCH] Fix #10595 add missing 'FORMAT' parameter to WMTS GetFeatureInfo requests (#10596) (#10606) * add missing 'FORMAT' parameter to WMTS GetFeatureInfo requests this is required by the WMTS spec to be the same format as would be used for a GetTile request, and this allows GFI requests to succeed on https://data.geopf.fr/wmts. * fix mapinfo wmts utils test Co-authored-by: Landry Breuil --- web/client/utils/mapinfo/__tests__/wmts-test.js | 1 + web/client/utils/mapinfo/wmts.js | 1 + 2 files changed, 2 insertions(+) diff --git a/web/client/utils/mapinfo/__tests__/wmts-test.js b/web/client/utils/mapinfo/__tests__/wmts-test.js index 72d1c04395..1bcbb84008 100644 --- a/web/client/utils/mapinfo/__tests__/wmts-test.js +++ b/web/client/utils/mapinfo/__tests__/wmts-test.js @@ -213,6 +213,7 @@ describe('mapinfo wmts utils', () => { request: 'GetFeatureInfo', layer: 'gs:us_states', infoformat: 'text/plain', + format: 'image/png', style: '', tilecol: 3, tilerow: 5, diff --git a/web/client/utils/mapinfo/wmts.js b/web/client/utils/mapinfo/wmts.js index 1834341c4d..5a622dcee0 100644 --- a/web/client/utils/mapinfo/wmts.js +++ b/web/client/utils/mapinfo/wmts.js @@ -95,6 +95,7 @@ export default { request: 'GetFeatureInfo', layer: layer.name, infoformat: props.format, + format: layer.format, style: layer.style || '', ...assign({}, params), tilecol: tileCol,