From ef5ac4b3154c4b463c06bffba920a794f0ff688f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanc?= Date: Tue, 28 Nov 2023 16:42:06 +0100 Subject: [PATCH] Do not reproject geometry for GeoJson format from GetFeatureInfo response as it is not necessary EPSG:4326 anymore --- utils/IdentifyUtils.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/utils/IdentifyUtils.js b/utils/IdentifyUtils.js index 41ce3b665..9015bb21a 100644 --- a/utils/IdentifyUtils.js +++ b/utils/IdentifyUtils.js @@ -290,14 +290,10 @@ const IdentifyUtils = { if (result[layer.name] === undefined) { result[layer.name] = []; } - let geometry = feature.geometry; - if (geometry) { - geometry = VectorLayerUtils.reprojectGeometry(geometry, "EPSG:4326", geometrycrs); // GeoJSON always wgs84 - } result[layer.name].push({ ...feature, id: id, - geometry: geometry, + geometry: feature.geometry, layername: layer.name, layertitle: layer.title });