Hi,
yes, I'm interested in trying to change the code to extend this behaviour.
Unfortunatedly, I'm not a proffessional programmer so I cant promisse I make
it works.
Anyway, I'll do my best and, in case I get it, I'll put the changes back
into geotools or wherever.
Cheers
Paddy
2011/6/27 Andrea Aime <andrea.a...@geo-solutions.it>
> On Mon, Jun 27, 2011 at 5:17 PM, Patrick O'Brian
> <paddyobria...@gmail.com> wrote:
> > Hi all,
> >
> > I have a POINT layer with 2 variables (n=population, m=statistycal
> variable)
> > which I render using a sld with several proportional circles for the
> > population and a colour filling each circle representing the variable
> which
> > classifies the population.
> > I've generated a SLD with n x m rules and it works great (properly
> ordered,
> > etc, etc.).
> >
> > My problem is in the moment I add a layer with a GIS application and it
> > tries to get the legend via WMS GetLegendGraphic. It brings to the
> > application a huge legend with n x m entries.
> > The legend is perfectly generated and shows what there is in the SLD, but
> > that legend is rather confusing in any application, because it's too
> large.
> >
> > Obviously GeoServer can't figure out what I'm trying to represent or the
> > legend I'd like to show, so my question is:
> >
> > is there any way I can add an image associated to an style so when I make
> a
> > WMS-GetLegendGraphic request geoserver returns the image I've added
> instead
> > of generating an image with the SLD rules???
> > I suggest it as a kind of wrapper, something optional, used only in case
> > it's needed, very close to WMS decorartor's philosophy.
>
> It is similar to an old request: http://jira.codehaus.org/browse/GEOS-3747
> It also has a tentative patch, but it's outdated and without a test, so far
> nobody worked to clean it up.
>
> The idea of the patch is to use the Rule's LegendGraphic element to produce
> the icon for a specific rule.
> Now, I believe it would not fit your case, since you want a legend for the
> whole style instead. That is something that would have to be specified
> style wise, at the UserStyle level... but SLD does not have that option.
> An extension to the standard would be in order, those usually require
> quite a bit of work: change the model classes back in Geotools,
> the parsers and the encoders, and then the code that actually uses
> them to generate the legend.
>
> Interested in trying to change the code to make it happen? I can
> point you to the relevant classes if you want, and the process
> to perform an API change back in Geotools
>
> Cheers
> Andrea
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users