[Geoserver-users] Strange borders appearing when rendering rasters with negative No_data

Hi,

I forgot to mention that the problem occurs when reprojecting the layer from EPSG:32632 to EPSG:3857.

After doing some tests with the SLD style I can confirm that the wrong edge color is the color used for values=0 (if the value=0 as opacity=0 the wrong edge is not displayed).

Regards

Roberto

···

From: Ghelli Roberto
Sent: Montag, 21. Juli 2014 18:25
To: ‘geoserver-users@lists.sourceforge.net’
Subject: Strange borders appearing when rendering rasters with negative No_data

Hi all,

When rendering a geoTiff the borders of the layer are strangely colored although there is no data.

This happens when:

Layer is a GeoTiff, type Float32 and No_data is set to a NEGATIVE value. In this particular case the wrong border appear with the color related to the value 0 of the style used.

Geoserver is 2.5.1 using JAI. I’ve tried to reproduce the problem in a Geoserver installation (2.4) without JAI and in this case it not occurs.

Also if I modify the layer (using GDAL commands) setting NODATA=0 the problem don’t occur anymore.

Do you have any suggestion about how to solve this matter?

Cheers

Roberto

On Tue, Jul 22, 2014 at 1:49 PM, Ghelli Roberto <Roberto.Ghelli@anonymised.com>
wrote:

Hi,

I forgot to mention that the problem occurs when reprojecting the layer
from EPSG:32632 to EPSG:3857.

After doing some tests with the SLD style I can confirm that the wrong
edge color is the color used for values=0 (if the value=0 as opacity=0 the
wrong edge is not displayed).

Ciao Roberto,
the issue is well known, there is no solution for the current series of
GeoServer: the image processing
library we are using, Java Advanced Imaging, was meant to process actual
photos, and has no notion
of nodata values, so when doing interpolations of any kind the nodata are
thrown into the mix
just like every other value.

This was the bad news, however there is also good news: GeoSolutios has
been working for over a
year to create a set of JAI operations that will replace the default ones,
and which are NODATA
aware.
Here they are:
https://github.com/geosolutions-it/jai-ext

We plan to start integrating them into GeoTools/GeoServer in the next few
months (right now
the development series is under feature freeze in preparation for the 2.6.0
release), in order
to make GeoServer 2.7.x, which will be released in March 2015, nodata aware

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------