[Geoserver-users] bad raster quality after update from version 2.0.2 to version 2.7.0

Hello geoserver-users,

we are running a GeoServer version 2.0.2 in our production environment.

To use the new features we are planning to update this server to version 2.7.x

On my test-server with version 2.7.0 the raster quality is very different to the old version.

Can anyone tell me which adjustment I had to make, to get the same raster quality on the new server as on the old version?

Geoserver 2.0.2 is running on a Tomcat with Java 1.6.0_24 on linux

GeoServer 2.0.7 is running on a Tomcat with Java 1.7.0_75 on linux

On both servers JAI is installed.

Here is an example:

GeoServer 2.0.2: https://drive.google.com/file/d/0B2s-J7yYZVA-LWd2Z0lRckdsUjQ/view?usp=sharing

GeoServer 2.7.0: https://drive.google.com/file/d/0B2s-J7yYZVA-bzBVX0RlVHcyV2s/view?usp=sharing

Thanks,

Markus

On Tue, Nov 24, 2015 at 5:13 PM, <Markus.Pflanz@anonymised.com> wrote:

Hello geoserver-users,

we are running a GeoServer version 2.0.2 in our production environment.

To use the new features we are planning to update this server to version
2.7.x

On my test-server with version 2.7.0 the raster quality is very different
to the old version.

Can anyone tell me which adjustment I had to make, to get the same raster
quality on the new server as on the old version?

None... the 2.0.x version had a messy interpolation application, some steps
were appliying
bilinear regardless of what the WMS setting was, and the 2.7.x is instead
honoring it fully.
The image processing change changed very deeply, too.

Unfortunately that made the image quality of rescaled/reprojected paletted
source images
worse, but we don't really know why, I have been looking into it already
coming up empty,
it sort of looks like 2.0.x was getting better quality for this case
entirely by accident.

Just out of curiosity, have you tried setting the interpolation to bilinear
in WMS?

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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

Ah, another thing you can try out is to add
the following system variable to your JVM:

-Dorg.geotools.image.reduceWarpAffine=false

This flag disables an optimization that increases performance and quality
for aerial images, avoiding double data resampling, but in your case,
with paletted images, it might improve quality at the expense of performance.

Cheers
Andrea

···

On Tue, Nov 24, 2015 at 6:00 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Tue, Nov 24, 2015 at 5:13 PM, <Markus.Pflanz@anonymised.com> wrote:

Hello geoserver-users,

we are running a GeoServer version 2.0.2 in our production environment.

To use the new features we are planning to update this server to version 2.7.x

On my test-server with version 2.7.0 the raster quality is very different to the old version.

Can anyone tell me which adjustment I had to make, to get the same raster quality on the new server as on the old version?

None… the 2.0.x version had a messy interpolation application, some steps were appliying
bilinear regardless of what the WMS setting was, and the 2.7.x is instead honoring it fully.
The image processing change changed very deeply, too.

Unfortunately that made the image quality of rescaled/reprojected paletted source images
worse, but we don’t really know why, I have been looking into it already coming up empty,
it sort of looks like 2.0.x was getting better quality for this case entirely by accident.

Just out of curiosity, have you tried setting the interpolation to bilinear in WMS?

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.