[Geoserver-users] Use cut as footprint behavior on Uint16 mosaic

Hy everyone,
I am trying to render RGB mosaic from bunch of VRT files. VRT files are pointing to TIF files which are defined as Uint16 type images , with no nodata defined at all. I installed GDAL plugin for Geoserver to achive this. Regarding the fact that my data doesn’t have nodata and alpha channel defined, Geoserver renders it with black background where it should be transparent, it’s expected behavior. I am trying to avoid reprocessing of data and still get effect of transparency. After a bit of searching for solution I found out about setting the option ‘footprint behavior’ to ‘cut’ and considering the fact that I have shapefiles already generated for each of my VRT granule I tried going in that direction.
In some cases this works fine, for example when I am requesting for JPEG image, but when I try other formats as PNG,GIF, ect… image renderer throws error randomly on different zoom levels.

The error message is:
‘Error rendering coverage on the fast path all factories fail for the operation "lookup"the user-supplied image bounds is not within the intersection of all the source bounds’

After hours of searching I found out that problem may be connected with Uint16 type of data. I also tried to get more info trough debuging of source code.I gave up on it after starting to get random error on layer creation when using any of stores provided by GDAL plugin.

Random error I got:
Caused by: java.lang.NumberFormatException: Character I is neither a decimal digit number, decimal point, nor “e” notation exponential mark. at java.base/java.math.BigDecimal.(BigDecimal.java:594)

But it is less important in this case.
Thank you in advance,
Goran

Hi,

When it comes to the “Character I” issue, read https://osgeo-org.atlassian.net/browse/GEOS-9868 and as a workaround for testing change the locale of your computer into English one.

-Jukka Rahkonen-

···

Lähettäjä: Goran Grcic <gorangrcic993@…84…>
Lähetetty: maanantai 22. toukokuuta 2023 14.22
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Use cut as footprint behavior on Uint16 mosaic

Hy everyone,
I am trying to render RGB mosaic from bunch of VRT files. VRT files are pointing to TIF files which are defined as Uint16 type images , with no nodata defined at all. I installed GDAL plugin for Geoserver to achive this. Regarding the fact that my data doesn’t have nodata and alpha channel defined, Geoserver renders it with black background where it should be transparent, it’s expected behavior. I am trying to avoid reprocessing of data and still get effect of transparency. After a bit of searching for solution I found out about setting the option ‘footprint behavior’ to ‘cut’ and considering the fact that I have shapefiles already generated for each of my VRT granule I tried going in that direction.
In some cases this works fine, for example when I am requesting for JPEG image, but when I try other formats as PNG,GIF, ect… image renderer throws error randomly on different zoom levels.

The error message is:
‘Error rendering coverage on the fast path all factories fail for the operation "lookup"the user-supplied image bounds is not within the intersection of all the source bounds’

After hours of searching I found out that problem may be connected with Uint16 type of data. I also tried to get more info trough debuging of source code.I gave up on it after starting to get random error on layer creation when using any of stores provided by GDAL plugin.

Random error I got:
Caused by: java.lang.NumberFormatException: Character I is neither a decimal digit number, decimal point, nor “e” notation exponential mark. at java.base/java.math.BigDecimal.(BigDecimal.java:594)

But it is less important in this case.
Thank you in advance,
Goran