On Thu, Dec 29, 2011 at 5:39 PM, Blake Crosby <m...@blakecrosby.com> wrote:

> Hello,
>
> I'm currently porting over my mapserver config to geoserver. One spot
> I'm stumped on is dealing with "styling" rasters.
>
> Take this mapserver config:
>
> CLASS
>         NAME "elevation"
>         EXPRESSION (([pixel] >= %YELLOW1%) AND ([pixel] < %RED2%))
>                 STYLE
>                         COLOR 255 255 0 # yellow
>                 END
>         END
> END
>
> YELLOW1 and RED2 are parameters that are sent along with the WMS call.
>
> Does geoserver support these types of rules? I tried using the filter
> option in the Raster Symbolizer, but couldn't get it to work.
>

As far as I know it is not possible to translate that expression into a
GeoServer
equivalent SLD right now.

SLD 1.0 does not have the ability you're looking for, SLD 1.1 might but
we don't support it fully enough to allow what you're trying to do to work.
For the record passing down variables from the request to the SLD
is supported as a vendor extension (it's not part of the SLD standard),
but only in places where the SLD schema allow for an expression,
unfortunately the ColorMap values are not one of them:
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/substitution.html

Getting there would require changes mostly to the geotools code, but
in multiple places. Not a massive amount of work, but not trivial either.

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

Please take note that GeoSolutions will be closed for Christmas holidays
from 27/12 to 30/12

-------------------------------------------------------
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to