Hi there,

I have an SLD for choosing 3 bands of a multi band image and allocating them to 
particular R,G,B channels as per the doc (sld is included below).

This works excellently when the SLD is pre-defined in the geoserver config 
(using style=) however I would like to define which bands are to be r,g,b  
(i.e. the 'SourceChannelName') at the time of the request.

I have seen on this list that that using the 'env' parameter is not possible, 
but it seems that using the SLD=<url> and SLD_BODY=<xml> params are also not 
possible, as geoserver seems to ignore their content for raster data (unless it 
is malformed in which case it throws an error).

Does anybody know if I am doing something wrong ?

thanks and cheers,

-ivan




<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
 xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
 xmlns="http://www.opengis.net/sld";
 xmlns:ogc="http://www.opengis.net/ogc";
 xmlns:xlink="http://www.w3.org/1999/xlink";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <NamedLayer>
    <Name>rgb_raster</Name>
    <UserStyle>
      <Title>rgb Raster</Title>
      <FeatureTypeStyle>
        <Rule>
          <Name>rule1</Name>
          <Title>Opaque Raster</Title>
          <Abstract>A raster with 100% opacity</Abstract>
          <RasterSymbolizer>

            <ChannelSelection>
              <RedChannel>
                <SourceChannelName>1</SourceChannelName>
              </RedChannel>

              <GreenChannel>
                <SourceChannelName>2</SourceChannelName>
              </GreenChannel>

              <BlueChannel>
                <SourceChannelName>3</SourceChannelName>
              </BlueChannel>
            </ChannelSelection>

          </RasterSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to