[Geoserver-users] Grib data not antialiasing

Hi all,

I’m working on a project that uses grib data, so have been using the community grib extension.

I’ve not been able to successfully use antialiasing properly on any of my example grib files in wms requests. All I can seem to get is pixelated output.

I’ve tried all the different settings for antialiasing in the WMS settings.

I don’t have native JAI installed - but assume that shouldn’t affect things, just make it not as fast. Had lots of problems installing it and gave up for now.

Below is an example output image. Would love for it to be nice and smooth. Does anyone know why it could be happening?

Regards,

Miles

On Thu, Jul 23, 2015 at 3:03 PM, Miles Jordan <miles@anonymised.com>
wrote:

Hi all,

I’m working on a project that uses grib data, so have been using the
community grib extension.

I’ve not been able to successfully use antialiasing properly on any of my
example grib files in wms requests. All I can seem to get is pixelated
output.

I’ve tried all the different settings for antialiasing in the WMS settings.

Antialiasing? You mean interpolation right?
Antialiasing is only for vector data, what controls how smooth the output
is, it's interpolation.
It seems your data is interpolated "nearest neighbor", you might want to
try out bilinear or bicubic?

Which version of GeoServer are you using btw?

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.

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

Hi Miles,
Not sure to understand what are you referring to with “antialiasing” property.
Anyway, did you try to set a different interpolation in WMS?
From the GUI, you can select the WMS from the Services list and switch the
Raster Rendering Options → Default interpolation from Nearest Neighbor to Bilinear as an instance.

This is what I get on a sample GRIB dataset when changing that property.
Left side = Bilinear interpolation; Right side = Nearest neighbor

​Cheers,
Daniele

···

On Thu, Jul 23, 2015 at 3:03 PM, Miles Jordan <miles@anonymised.com> wrote:

Hi all,

I’m working on a project that uses grib data, so have been using the community grib extension.

I’ve not been able to successfully use antialiasing properly on any of my example grib files in wms requests. All I can seem to get is pixelated output.

I’ve tried all the different settings for antialiasing in the WMS settings.

I don’t have native JAI installed - but assume that shouldn’t affect things, just make it not as fast. Had lots of problems installing it and gave up for now.

Below is an example output image. Would love for it to be nice and smooth. Does anyone know why it could be happening?

Regards,

Miles



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

Ing. Daniele Romagnoli
Senior Software Engineer

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

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.

Hi Miles,
I did my screenshot with a master version I have running for others tests.
I will do similar tests on 2.7.0.
About SLD, I’m using a simple ColorMap.

Hope this helps.
Daniele

···

On Fri, Jul 24, 2015 at 5:17 AM, Miles Jordan <miles@anonymised.com…6428…> wrote:

On 24 Jul 2015, at 1:13 am, Daniele Romagnoli <daniele.romagnoli@anonymised.com> wrote:

Hi Miles,
Not sure to understand what are you referring to with “antialiasing” property.
Anyway, did you try to set a different interpolation in WMS?
From the GUI, you can select the WMS from the Services list and switch the
Raster Rendering Options → Default interpolation from Nearest Neighbor to Bilinear as an instance.

Hi Andrea, Daniele,

Hah, sorry I realised I said antialiasing instead of interpolation just after I sent it, but figured you’d know what I meant.

I have bicubic set in the WMS options as well as in the layer options (under the publishing tab).

Using version 2.7.0 and Oracle Java 1.8.0_51, without native JAI (which I’m still struggling with).

It looks ok zoomed out:

but if I zoom in I was expecting the interpolation to smooth it out. This is what I get:

The style is just a basic RasterSymbolizer with a ColorMap.

Which version are you using Daniele, and do you use any special SLD to have it work like that or is it just a ColorMap also?

Thanks of the help.

-Miles

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

Ing. Daniele Romagnoli
Senior Software Engineer

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

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.