Hi Andrea,
Thanks for your fast reply. Let me try to explain my scnenario.
I have a very especial scenario that I use the wms decoration in order to
generate my legends. In my case I pass the style in dynamic way
through sld_body
parameter because my target map is a thematic map like this one in the link
(http://en.wikipedia.org/wiki/File:Choropleth.gif). In that kind of map I
need two styles one for rendering the map itself that has states names and
theirs colors and another for rendering the legend graphic that is a
summary of the all states in the map, otherwise I would end up with one
item in the legend for each state and that will not fit in my map.
That´s why I need the FEATURETYPE to be passed with the legend graphic in
that way I can simple say to the wms decoration what legend to use in order
to create the legend for my thematic graph. In the end I will have two
feature type styles one for the map and another for the legend.
Let me kwon if think that there is any better solution or if you still
think that it doesn’t make sense.
Thanks in advantaged
Felipe
On Fri, Jun 15, 2012 at 5:23 PM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:
> On Fri, Jun 15, 2012 at 9:58 PM, Felipe Frechiani <felip...@gmail.com>
> wrote:
> > Hi,
> >
> > In the geoserver docs for GetLegendGraphic
> >
> http://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/legendgraphic.html
> says
> > that there is an
> > FEATURETYPE that its description is Feature type for which to produce
> the
> > legend graphic. This is not needed if the layer has only a single feature
> > type.
> > But when i try to use it seems that not worked. For the topp:state layer
> > that has popupation style i add another FeatureType one called
> > <FeatureTypeName>teste1</FeatureTypeName> and another
> > called <FeatureTypeName>teste2</FeatureTypeName> but when o make the
> > following
> > request to my geoserver it returs both featuretype instead of the one
> that i
> > had requested.
> > Does any one knows if such feature param is implemented in geoserver. I´m
> > using geoserver version 2.14.
>
> The parameter is parsed but then it's not used.
>
> Btw, a style that references explicitly feature types does not make
> much sense in
> GeoServer, if the names in feature type do not match the layer to
> which the style
> is associated they simply won't render anything (or at least, they should
> not,
> never relied on that behavior so cannot be sure).
>
> 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
> mob: +39 339 8844549
>
> 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
>
--
Felipe Frechiani de Oliveira
Vitória - ES
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users