This is a cross-post from
 as I was told that this may be a better place to ask this question:

I'm trying to publish a layer with a style that allows the extended WMS request 
to specify what image bands to map to the RGB values. Based on existing 
examples I assumed that my SLD should have something like the following 
RasterSymbolizer element:

              <ogc:Function name="env">

But the SLD validation fails with the following error:

Element 'SourceChannelName' is a simple type, so it must have no element 
information item [children]

I am following this documentation:

Is there a way to do this or is it not supported for the ChannelSelection 
element? Are there any more examples and/or documentation for SLD variable 
substitution that I can look at?


This electronic correspondence, including any attachments, is intended solely 
for the use of the intended recipient(s) and may contain legally privileged, 
proprietary and/or confidential information. If you are not the intended 
recipient, please immediately notify the sender by reply e-mail and permanently 
delete all copies of this electronic correspondence and associated attachments. 
Any use, disclosure, dissemination, distribution or copying of this electronic 
correspondence and any attachments for any purposes that have not been 
specifically authorized by the sender is strictly prohibited.
Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
- Earning your support instead of buying it, but Ian Turton:
- The GeoServer user list posting guidelines:

If you want to request a feature or an improvement, also see this:

Reply via email to