GeoServer – GetFeatureInfo GeoJSON with Different Precision in Different Workspaces

geojsongeoservergetfeatureinfo

I've just set up my GeoServer and app to work with application/json GetFeatureInfo requests. One of the advantages of this is that it returns the feature in GeoJSON format along with the attributes. This allows me to "highlight" the feature which currently has a popup open. I have two of the exact same datasets in different GeoServer workspaces. When clicking on the exact same feature one workspace returns a very coarse GeoJSON (about 10 vertices) while the other returns a detailed GeoJSON (over 100 vertices). The coarse version is fine when zoomed out but if you zoom in after clicking a feature you see a very simplified and inaccurate highlighted feature.

Does anyone know what could be causing this? To my knowledge I have no workspace specific settings and am using global settings for everything in my GeoServer.

Best Answer

"Support on the fly geometry simplification" was checked on for the problem data store. Unchecking it resolved this issue.

On-the-fly simplification setting

Related Question