I'm getting an shifting error when clicking on a Coverage. It shows me the value of the pixel next to it on its right side.
I've tried to trace the error to this function (geoserver 2.17.1): https://github.com/geoserver/geoserver/blob/81b51a9cf5892ca221193b7b12e5a97fcc559ccc/src/wms/src/main/java/org/geoserver/wms/featureinfo/RasterLayerIdentifier.java#L91 It seems that the click sends a pixel position to this function. The pixel is converted to world coordinates (upper left corner), and this position is then evaluated for the coverage (line 292). The evaluation will turn back the world position to pixel coordinates, https://github.com/geotools/geotools/blob/68269d171453ba6244fd481d9c61825987702626/modules/library/coverage/src/main/java/org/geotools/coverage/grid/GridCoverage2D.java#L493 but this transformation will return a pixel position like (1.5, 1.4999999). It depends on the rounding error of the final pixel queried. In the example, it will query (2, 1). I've seen there is a recent patch (@aaime, a week ago) related to https://osgeo-org.atlassian.net/browse/GEOS-9682 but I wonder whether this is related to the geometry computation. Does it make sense the coverage feature info evaluation process? Does this patch fix this issue? Thanks in advance. _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
