From dbf2645dc5ed994da2a93689ea5e1a53e9bbc24a Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Fri, 4 Oct 2024 14:07:45 +0200 Subject: [PATCH 1/2] 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. --- web/client/utils/mapinfo/wmts.js | 1 + 1 file changed, 1 insertion(+) 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, From d4bebf64eb0051646e6216f300875050ad90f8d0 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Fri, 4 Oct 2024 15:52:24 +0200 Subject: [PATCH 2/2] fix mapinfo wmts utils test --- web/client/utils/mapinfo/__tests__/wmts-test.js | 1 + 1 file changed, 1 insertion(+) 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,