Title: Message Title
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
13-RC1, 12.2
|
Assignee:
|
Andrea Aime
|
Attachments:
|
paint_legend_graphic_negative_scale.patch
|
Components:
|
render
|
Created:
|
18/Mar/15 10:15 AM
|
Priority:
|
Major
|
Reporter:
|
Steve Ikeoka
|
|
Calling StyleShapePainter.paint for an SLD LegendGraphic element with a negative scale will result in an IllegalArgumentException. This is a problem because GeoServer GetLegendGraphic requests use -1 as the default scale.
A patch with a junit test is attached.
Stack Trace:
java.lang.IllegalArgumentException: Width (-20) and height (-20) must be > 0 at java.awt.image.SampleModel.<init>(SampleModel.java:126) [rt.jar:1.7.0_72] at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:146) [rt.jar:1.7.0_72] at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:87) [rt.jar:1.7.0_72] at java.awt.image.Raster.createInterleavedRaster(Raster.java:641) [rt.jar:1.7.0_72] at java.awt.image.Raster.createInterleavedRaster(Raster.java:278) [rt.jar:1.7.0_72] at java.awt.image.BufferedImage.<init>(BufferedImage.java:399) [rt.jar:1.7.0_72] at org.geotools.renderer.lite.StyledShapePainter.paint(StyledShapePainter.java:365) [gt-render-12.2.jar:]
|
|
|
|
|
|
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel