Hi list,

I have a layer.sld with 2 user styles (layer and layerLegend). I want to create 
a legend of the layerLegend user style. But when using the following request, I 
get a runtime exception: java.lang.NullPointerException: request.getStyle()

wms?request=GetLegendGraphic&version=1.0.0&format=image/png&strict=false&style=layerLegend&width=20&height=20

When I copy the layer.sld to the www/styles directory in the data directory and 
I add the SLD-parameter to the previous request, the expected legend graphic is 
created successfully.

wms?request=GetLegendGraphic&version=1.0.0&format=image/png&strict=false&style=layerLegend&width=20&height=20&SLD=http://localhost:8080/geoserver/www/styles/layer.sld

Is it possible to generate the legend of a 2nd (or 3rd) user style in an SLD 
without having to copy the sld into the www/styles directory?

Kind regards,
Roel De Nijs
Senior Java Developer

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | 
Twitter<https://twitter.com/aquafinnv> | 
YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | 
LinkedIN<http://www.linkedin.com/company/aquafin/products>

Disclaimer: zie www.aquafin.be<http://www.aquafin.be>   P Denk aan het milieu. 
Druk deze mail niet onnodig af.

[http://www.aquafin.be/ISOlogo.png] 
<http://pers.aquafin.be/aquafin-behaalt-eerste-belgische-iso55001-certificaat#>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to