Dear community,
This issue refers to a fix proposed by Ville Karppinen at Finnish Meterological
Institute (FMI) regarding a patch to Geotools. The fix would enable Geoserver
to serve raw raster data with 16 bit data trough WMS without it being rescaled
to 8 bit. This would allow the user to fully utilize the benefits of 16 bit
data trough WMS.
The matter is now current again. The patch indeed works in the sense that it
allows 16 bit data to be downloaded trough WMS. However, building Geoserver
against the patched Geotools causes some of the unit tests in Geoserver to fail
in a null pointer exception. The failing tests are in
org.geoserver.wms.map.RenderedImageOutputFormatTest.java, namely
testInterpolations and testInterpolationFromLayerConfig.
The issue seems to be with the transparency. The test data used in the
aforementioned tests is 16 bit. Geoserver/Geotools does not handle 16 bit data
with alpha, and it seems that JAI does not handle TYPE_USHORT_GRAY with an
alpha channel either.
It would be very neat to be able to serve 16 bit data trough WMS in case the
original data supports it.
Would anyone have any suggestions on how to handle this properly?
One suggestion is to check whether the user requested transparent data and, and
rescale to 8 bit in that case. Would this approach make sense?
The patch can be seen here:
https://github.com/asterycs/geotools/commit/307d4e2a3d0089b9c27d98ba18435599494f8c10
Best regards
Jimmy Envall
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel