On Tue, May 15, 2012 at 4:46 PM, Nicolas Noé <[email protected]> wrote:
> Hi,
>
> I'm currently trying to issue WMS GetMap request that include serveral
> layers. The idea is to aggregate on a single image several search
> results. Thus, every layer will receive different CSL filters. For
> example, I can easily aggregate results for two species using:
>
> ...
> &LAYERS=ifbl:species_search,ifbl:species_search
> &CQL_FILTER=species_id=7;species_id=8
>
> So far, everythings works fine. But I'd also like to use variable
> substitution in SLD to dynamically specify a different color for each
> resultset/layer. That would mean to specify multiple time (one per
> layer) the same "env" value.So far, I was not able to do this. I tried:

Yep, it's not possible to have a per layer variable substitution,
environment variables are global to the request.
I can think of a few ways to change the code to handle this use case,
but all of them would require changes to both GeoTools and
GeoServer (e.g., not quick).

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

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to