Hi All,
I'm trying to use variable substitution in the SLD to allow the user to
pick which band to display from the raster.
My SLD Looks like this:
<RasterSymbolizer>
<Opacity>0.35</Opacity>
<ChannelSelection>
<GrayChannel>
<SourceChannelName>
<ogc:Function name="env">
<ogc:Literal>band</ogc:Literal>
<ogc:Literal>25</ogc:Literal>
</ogc:Function>
</SourceChannelName>
</GrayChannel>
</ChannelSelection>
....
I'm passing the proper query parameter:
&env=band:20
But I get the following error from geoserver:
Error rendering coverage on the fast path
java.lang.IllegalArgumentException: Band number -1 is not valid.
Band number -1 is not valid.
For input string: "channel"
So I take it that "function name="env"" doesn't work here as it's
returning -1 or nothing at all?
Blake
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users