I am a little bit stack here.
I want to serve a background tif using geoserver and I don't know which is the best way in terms of efficiency. My raster is 1-band GTiff UInt16 with height/terrain values. I don't care about displaying the values, I just only need them for visualization purposes.
Option A) Associate a color-ramp from a text file using gdaldem and serve the image as Type: Byte, 3-band RGB, GTiff and let geoserver display it by using the following sld code:
RasterSymbolizer> <ChannelSelection> <RedChannel> <SourceChannelName>1</SourceChannelName> </RedChannel> <GreenChannel> <SourceChannelName>2</SourceChannelName> </GreenChannel> <BlueChannel> <SourceChannelName>3</SourceChannelName> </BlueChannel> </ChannelSelection> </RasterSymbolizer>
Option B) Uploading into geoserver the 1-band, Type: UInt16, original raster and then apply a color-ramp by using a style/SLD code on raster values.
Which is faster? more efficient?