[Geoserver-users] Antialiasing Vendor parameter dead?

Hi Geoserver users

I need to switch off the antialiasing in my project but I’m not able to do it using the geoserver vendor parameter (format_options) in WMS request (regarding the documentation).

The vendor parameter &format_options=antialiasing:off seems to be dead.

I’ve tried both requests against the tasmania_state_boundaries layer and both produce the same antialiased images:

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812**&**format_options=antialiasing:off

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812&format_options=antialiasing:on

No matter what I put in the format_options parameter the produced image is always antialiased.
Is this a bug or I’m proceeding somehow wrong?

I’m using the geoserver satable version 2.17.0, tomacat9, Win Server 2019 64bit, openjdk version “1.8.0_252”

Thanks for any advice

Bartek

I’ve just checked 2.17.1 and all seems fine to me.

Full Antialiasing (http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Afull&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125)

No Anti aliasing - http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125

So it seems to be working fine

Ian

···

Ian Turton

To be noted, in Ian’s request the format_option is called “antialias” instead of “antialiasing” :slight_smile:
Indeed, that’s how it’s supposed to be called (checked the code).

Cheers
Andrea

full-aa.png

no-aa.png

···

Regards, Andrea Aime

== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Hi Andrea, hi Ian

indeed after switching optopns_format to antialias:none instead of antialiasing:off it works great.
The additional issue that is catching my eye is the funny map styling by changing image format to png8. See the animated gif attached:

B4QjIcBdhq.gif

Depending of the extent and zoom level in the wms request the styling of features and background of the map is changing a kind of randomly.
It happens on my own map and also for the states map:

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=29.2236328125%2C-110.23681640625%2C32.84912109375%2C-101.79931640625

topp-states.png

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=27.333984375%2C-113.62060546875%2C34.5849609375%2C-96.74560546875

topp-states2.png

For me it is important to use png8 and antialias:none because of performance reasons.

Thanks a lot for your insight.

Regards

Bartek

śr., 1 lip 2020 o 12:19 Andrea Aime <andrea.aime@anonymised.com> napisał(a):

To be noted, in Ian’s request the format_option is called “antialias” instead of “antialiasing” :slight_smile:
Indeed, that’s how it’s supposed to be called (checked the code).

Cheers
Andrea

On Wed, Jul 1, 2020 at 11:49 AM Ian Turton <ijturton@…84…> wrote:

I’ve just checked 2.17.1 and all seems fine to me.

Full Antialiasing (http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Afull&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125)

full-aa.png

No Anti aliasing - http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125

no-aa.png

So it seems to be working fine

Ian

On Wed, 1 Jul 2020 at 10:09, Bartek Burkot <pomiarowiec10@anonymised.com> wrote:

Hi Geoserver users

I need to switch off the antialiasing in my project but I’m not able to do it using the geoserver vendor parameter (format_options) in WMS request (regarding the documentation).

The vendor parameter &format_options=antialiasing:off seems to be dead.

I’ve tried both requests against the tasmania_state_boundaries layer and both produce the same antialiased images:

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812**&**format_options=antialiasing:off

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812&format_options=antialiasing:on

No matter what I put in the format_options parameter the produced image is always antialiased.
Is this a bug or I’m proceeding somehow wrong?

I’m using the geoserver satable version 2.17.0, tomacat9, Win Server 2019 64bit, openjdk version “1.8.0_252”

Thanks for any advice

Bartek


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

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

Ian Turton


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

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

Regards, Andrea Aime

== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Hi Andrea
hi Ian

Did you have a chance to reconstruct this issue?

Bartek

śr., 1 lip 2020 o 15:58 Bartek Burkot <pomiarowiec10@anonymised.com> napisał(a):

Hi Andrea, hi Ian

indeed after switching optopns_format to antialias:none instead of antialiasing:off it works great.
The additional issue that is catching my eye is the funny map styling by changing image format to png8. See the animated gif attached:

B4QjIcBdhq.gif

Depending of the extent and zoom level in the wms request the styling of features and background of the map is changing a kind of randomly.
It happens on my own map and also for the states map:

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=29.2236328125%2C-110.23681640625%2C32.84912109375%2C-101.79931640625

topp-states.png

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=27.333984375%2C-113.62060546875%2C34.5849609375%2C-96.74560546875

topp-states2.png

For me it is important to use png8 and antialias:none because of performance reasons.

Thanks a lot for your insight.

Regards

Bartek

śr., 1 lip 2020 o 12:19 Andrea Aime <andrea.aime@anonymised.com> napisał(a):

To be noted, in Ian’s request the format_option is called “antialias” instead of “antialiasing” :slight_smile:
Indeed, that’s how it’s supposed to be called (checked the code).

Cheers
Andrea

On Wed, Jul 1, 2020 at 11:49 AM Ian Turton <ijturton@anonymised.com> wrote:

I’ve just checked 2.17.1 and all seems fine to me.

Full Antialiasing (http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Afull&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125)

full-aa.png

No Anti aliasing - http://localhost:8080/geoserver-2.17.0/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&exceptions=application%2Fvnd.ogc.se_inimage&FORMAT_OPTIONS=antialias%3Anone&SRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=330&BBOX=-100.17333984375%2C38.14453125%2C-91.73583984375%2C41.77001953125

no-aa.png

So it seems to be working fine

Ian

On Wed, 1 Jul 2020 at 10:09, Bartek Burkot <pomiarowiec10@anonymised.com> wrote:

Hi Geoserver users

I need to switch off the antialiasing in my project but I’m not able to do it using the geoserver vendor parameter (format_options) in WMS request (regarding the documentation).

The vendor parameter &format_options=antialiasing:off seems to be dead.

I’ve tried both requests against the tasmania_state_boundaries layer and both produce the same antialiased images:

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812**&**format_options=antialiasing:off

http://localhost:8080/geoserver217/topp/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=topp%3Atasmania_state_boundaries&exceptions=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&STYLES=&WIDTH=768&HEIGHT=673&BBOX=-43.59031677246094%2C147.22366333007812%2C-42.66609191894531%2C148.27835083007812&format_options=antialiasing:on

No matter what I put in the format_options parameter the produced image is always antialiased.
Is this a bug or I’m proceeding somehow wrong?

I’m using the geoserver satable version 2.17.0, tomacat9, Win Server 2019 64bit, openjdk version “1.8.0_252”

Thanks for any advice

Bartek


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

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

Ian Turton


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

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

Regards, Andrea Aime

== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Hi,
nope. Please open a bug report at https://osgeo-org.atlassian.net/projects/GEOS/summary

If getting this fixed is a matter of urgency for you, I’d also recommend looking into commercial support:
http://geoserver.org/support/

Cheers
Andrea

full-aa.png

no-aa.png

B4QjIcBdhq.gif

topp-states.png

topp-states2.png

···

Regards, Andrea Aime

== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.