I found out the issue originated from the "global" opacity being set
(additionally to the color map entry's).

Setting a global (symbolizer level) opacity smaller than 1.0 activates a
branch in the RasterSymbolizerHelper@146 which in the end replaces the
"#outputImage" (which correctly shows an IndexColorMap) with a new
"#finalImage" with a ComponentColorMap which eventually breaks the
rendering with the reported out-of-bound error while reading a LUT.

Not sure if this can be considered a bug, or if the library should alert
the user that setting both symbolizer- and colormap entry-level opacities
is "dangerous".

-Piero

On 7 October 2016 at 16:18, Piero Campalani <piero.ca...@gmail.com> wrote:

> Hi list,
>
> I am crafting a raster by wrapping a GeoTiffReader into a GridReaderLayer
> of my SWT map pane.
>
> Before upgrading to GT 15.1 everything was OK, while now I am getting a
> out-of-bound exception while the renderer (GridCoverageRenderer) looks up
> the LookupTableJAI which is somehow attached to my GeoTiff.
>
> Attached you can find the XML equivalent of the style I am assigning to
> the image, where I essentially map the range of pixel values to my custom
> color gradient (@see SLDTransformer#transform(Object)).
>
> While investigating my issue, any help is appreciated!
>
> Thanks,
> -Piero
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to