Commit f295d74f authored by Mauro Bartolomeoli's avatar Mauro Bartolomeoli
Browse files

GEOS-7020: removed the additional pixel from paintAreaSize instead

of adding one to targetRasterSpace envelope
parent c8983a40
......@@ -171,12 +171,12 @@ public class VectorRenderingLayerIdentifier extends AbstractVectorLayerIdentifie
if(radius < buffer) {
radius = buffer;
}
Envelope targetRasterSpace = new Envelope(params.getX() - radius - 0.5, params.getX() + radius + 0.5,
params.getY() - radius - 0.5, params.getY() + radius + 0.5);
Envelope targetRasterSpace = new Envelope(params.getX() - radius, params.getX() + radius,
params.getY() - radius, params.getY() + radius);
Envelope targetModelSpace = JTS.transform(targetRasterSpace, new AffineTransform2D(screenToWorld));
// prepare the image we are going to check rendering against
int paintAreaSize = radius * 2 + 1;
int paintAreaSize = radius * 2;
final BufferedImage image = ImageTypeSpecifier.createFromBufferedImageType(
BufferedImage.TYPE_INT_ARGB).createBufferedImage(paintAreaSize,
paintAreaSize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment