Hi, I have a set of large multi-band (10 band UInt16) data as GeoTIFF which I
would like to publish through Geoserver, the band order is a little odd as
its a product derived from some Sentinel-2 data, but as far as I understand
it using the <ChannelSelection> object in an SLD we can fiddle with the RGB
bands and some <ContrastEhancement> to perform the colour stretches on the
data, so essentially ending up with something like;

<ChannelSelection>
  <RedChannel>
    <SourceChannelName>3</SourceChannelName>
    <ContrastEnhancement>
      <Normalize>
        <VendorOption
name="algorithm">StretchToMinimumMaximum</VendorOption>
        <VendorOption name="minValue">1</VendorOption>
        <VendorOption name="maxValue">300</VendorOption>
      </Normalize>
    </ContrastEnhancement>
  </RedChannel>
  <GreenChannel>
    <SourceChannelName>2</SourceChannelName>
    ...
  </GreenChannel>
  <BlueChannel>
    <SourceChannelName>1</SourceChannelName>
    ...
    </ContrastEnhancement>
  </BlueChannel>
</ChannelSelection>

This seems to work as expected right up until we hit the areas of nodata
around the edges of the images which turn out as black (all 10 bands are 0
and the Geotiff bands all have nodata set at 0) as shown in the image below;

<http://osgeo-org.1560.x6.nabble.com/file/t382381/nodata_transparency.jpg> 

I can obviously reprocess the image into an RGBA 8-bit image which would
just 'work' however I would like to retain the option of providing several
styles to give false colour images from the other bands as well as
potentially using WPS and WCS services to distribute and process the data
further on demand. I have been hitting my head against a wall for a while
now without much respite and all I can find on this is some vague mentions
of transparency not working in non 8bit images or when using the
<ChannelSelection> element, so I was just fishing for anyone else
potentially in the same boat or having solved the problem in some inventive
manner.

Many Thanks,
Matt



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to