|
As described in this thread: http://osgeo-org.1560.x6.nabble.com/WMS-quot-Library-Mode-quot-request-td5131616.html, I've tried to generate a wms request for two layers using sld_body parameter as "LibraryMode", as described here: http://docs.geoserver.org/latest/en/user/styling/sld-working.html#sld-library-mode.
I've built an example url using some layers from tiger-data: see attached document. Here a url-like string to explain what I've tried to do: http://mygeoserver/wms?layers=poly_landmarks,poi&styles=,poi&bbox=...&sld_body=...
I request two layers:
-
the first has no "styles" parameter, but the stile is specified in the sld_body
-
the second has "styles" parameter, and points to a sld inside geoserver.
I expected to see the two layers rendered with the specified styles, but a ServiceException is thrown: " java.lang.ArrayIndexOutOfBoundsException: 1 1"
Note that the same url WITHOUT sld_body works perfectly, and uses the default style for the first layer (as expected).
|