| If a style has a Rule with <MaxScaleDenominator> and no other rule to match scales over it, the GetLegendGraphic fails with an Exception when a greater scale is requested. Example, all the rules in the style "poi" have <MaxScaleDenominator>32000</MaxScaleDenominator> If the requested scale matches the limit, it gives you an image: http://demo.geo-solutions.it/geoserver/wms?service=WMS&request=GetLegendGraphic&format=image%2Fpng&height=12&width=12&layer=tiger%3Apoi&style=&version=1.3.0&SLD_VERSION=1.1.0&SCALE=32000 Otherwise an Exception: http://demo.geo-solutions.it/geoserver/wms?service=WMS&request=GetLegendGraphic&format=image%2Fpng&height=12&width=12&layer=tiger%3Apoi&style=&version=1.3.0&SLD_VERSION=1.1.0&SCALE=32001
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc http://demo.geo-solutions.it:80/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException>
java.lang.IllegalArgumentException: Width (2) and height (0) must be > 0 Width (2) and height (0) must be > 0
</ServiceException>
</ServiceExceptionReport>
Logs the following:
Maybe related to
GEOS-5846 Open and
GEOS-5710 Closed |