Hi,


This enhancement is quite cool. In my case all my styles as dynamic
generated. It is a list of the cities of my state classified more like what
this function that you have pointed does, but i create one rule for each
cities in my sld.

About the legend, do you know what kind of legend it generates? Meaning
instead of states names just the color and the numbers like in the thematic
map.


Cheers!!




On Mon, Jun 18, 2012 at 2:08 PM, Martin Davis <mda...@opengeo.org> wrote:

> If the problem is that you have a style that has one rule for each state,
> you might be able to use expressions in styling parameters to reduce the
> number of rules required:
>
>
> http://docs.geoserver.org/latest/en/user/styling/sld-reference/pointsymbolizer.html#using-expressions-in-parameter-values
>
> The new-ish transformation filter functions make this kind of thing easier
> (although I'm not sure if they are in 2.1.4):
>
>
> http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html
>
> One of the noted *disadvantages* of using these functions is that they
> don't get reflected in legend graphic entries - but in this case, that's
> actually an advantage.
>
> If it isn't obvious how to do this, you might want to post your styles to
> the list.
>
> On Mon, Jun 18, 2012 at 4:37 AM, Felipe Frechiani <felip...@gmail.com>wrote:
>
>> 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
>>
>>
>
>
> --
> Martin Davis
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
>
>


-- 
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

Reply via email to