This small patch seems to work for my datasets. It also passes geoserver tests.
---
a/src/wms/src/main/java/org/geoserver/wms/featureinfo/RasterLayerIdentifier.java
+++
b/src/wms/src/main/java/org/geoserver/wms/featureinfo/RasterLayerIdentifier.java
@@ -268,8 +268,8 @@ public class RasterLayerIdentifier implements
LayerIdentifier<GridCoverage2DRead
// set the requested position in model space for this request
final Coordinate middle =
WMS.pixelToWorld(
- params.getX(),
- params.getY(),
+ params.getX() + .5, // lookup at pixel center
+ params.getY() + .5, // lookup at pixel center
params.getRequestedBounds(),
params.getWidth(),
params.getHeight());
_______________________________________________
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