Hi guys,
I fixed this problem.
Aditionally, I have created a MockUtils class in
test/org/vfny/geoserver/testdata, whcih provides a fully functional mocked up
geoserver and properly configured HttpServletRequest/session/context, using
the CITE properties datastore.
So, for those of you who may need to unit test pieces of code that depends on
a running geoserver this may be of interest.
Just call MockUtils.newHttpRequest(
Map/* <String, String> */initialParams,
boolean includeMockGeoServer)
with the map of request parameters and true if you want a fully functional
geoserver configured with a CITE datastore!
Way so useful for testing request parsers and much more.
cheers,
Gabriel.
On Friday 14 October 2005 19:14, Gabriel Roldán wrote:
I found the problem. Certainly, the gelegendgraphic request parser is
returning the first style found on the sld document, thus it may be not
applyable to the requested layer.Going to fix it asap.
Gabriel.
On Friday 14 October 2005 10:52, Chris Holmes wrote:
> Quoting Luca Morandini <luca.morandini1@anonymised.com>:
> > I've used the GetLegendGraphic WMS request with GeoServer 1.3RC3 and
> > SLD
> > with fine results as long as there was only one style in the SLD;
> > but, when
> > I added a new style, it kept telling me the style I requested (via
> > GetLegendGraphic) didn't exist, and worked only when I put the second
> > style
> > as first in the SLD document... needless to say, now it was the turn
> > of the
> > other layer to refuse returning the legend graphics.
> >
> > Hence, my guess is that LegendGraphic stops searching for a style in
> > the SLD
> > after the first NamedLayer/UserStyle elements has been processed...
> > or am I
> > missing something obvious ?
>
> So to confirm, the mutliple style SLDs work fine for the WMS GetMap
> stuff, just not for the GetLegendGraphic? Sounds like a bug/not quite
> completed feature - I think Gabriel coded the auto-generation
> LegendGraphic stuff. Any insight Gabriel?
>
> > Regards,
> >
> > --------------------
> > Luca Morandini
> > www.lucamorandini.it
> > --------------------
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads,
> > discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > _______________________________________________
> > Geoserver-users mailing list
> > Geoserver-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> ----------------------------------------------------------
> This mail sent through IMP: https://webmail.limegroup.com/
--
Gabriel Roldán (gabriel.roldan@anonymised.com)
Axios Engineering
te. (+34) 944 41 63 84
fax. (+34) 944 41 64 90