[Geoserver-devel] [JIRA] (GEOS-9284) Default RasterSymbolizer style produces different images if JAI-Ext is enabled or not

Gnafu created an issue

GeoServer / BugGEOS-9284

Default RasterSymbolizer style produces different images if JAI-Ext is enabled or not

Issue Type:

BugBug

Affects Versions:

2.14.1, 2.15.2, 2.16-RC

Assignee:

Unassigned

Attachments:

float32_nodata.tif, it.geosolutions-float32_nodata_bgcolor_JAIEXT.jpg, it.geosolutions-float32_nodata_bgcolor_NO_JAIEXT.jpg, screenshot - annotated.PNG

Components:

styling, WMS

Created:

11/Jul/19 12:49 PM

Environment:

Tested on Linux with OpenJDK 64-Bit 1.8.0_181 and Window 10 with Java HotSpot™ 64-Bit 1.8.0_161

Priority:

MediumMedium

Reporter:

Gnafu

The same Geotiff is rendered differently if JAI-Ext is enabled or not.
I originally found this in 2.15.x and confirmed it exists on 2.14.1 too.

To reproduce:

  • Download the latest 2.16.x platform independent binary
  • Publish the attached float32_nodata.tif file as a simple GeoTiff
  • Use the default “raster” style without any change
  • Preview it (see the attached it.geosolutions-float32_nodata_bgcolor_JAIEXT.jpg)
    • Note: I used the BGCOLOR parameter to see the data boundaries
  • Restart GeoServer with the “-Dorg.geotools.coverage.jaiext.enabled=false” parameter to disable JAIEXT
  • Preview the layer again (see the attached it.geosolutions-float32_nodata_bgcolor_NO_JAIEXT.jpg)

See the attached “screenshot - annotated.PNG” file to see how the file looks like in QGIS.
I used the purple background color to see the difference between the nodata area an the maximum value area.

The images are different:

  • With JAI-Ext the full extent is black
  • Without JAI-Ext the nodata is black and the rest is white

The sample file has the following content :
Total pixel count: 100
NODATA pixel count: 25
Value Pixel count
1 33
1.05 25
1.1 8
1.3 9

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100105-sha1:752b1ef)

Atlassian logo