Skip to content

Commit

Permalink
Do not reproject geometry for GeoJson format from GetFeatureInfo resp…
Browse files Browse the repository at this point in the history
…onse as it is not necessary EPSG:4326 anymore
  • Loading branch information
benoitblanc committed Nov 28, 2024
1 parent e30b49c commit 7db2e6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utils/IdentifyUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,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
});
Expand Down

0 comments on commit 7db2e6b

Please sign in to comment.