[Geoserver-devel] 2.5 Antialias off option for svg-symbols is not working correctly

Hi all,

very pleased to see that this is beeing worked on, it is crucial for us to
be able to disable antialiasing for svg-symbols. ([GEOS-5729] - Antialiasing
can not be turned off for svg-symbols)

Overall, antialiasing for svg-symbols seems to work well, even though I
have not had time yet to look at the quality.

There is, however, one main problem. It seems that antialiasing is not
turned off when a svg-symbol is rotated (see attached picture, yellow and
green ellipses). One strange thing is that two symbols with same sld rule
and svg-symbol might end up both antialiased and none-antialiased in the
same picture (blue ellipses.)

For green arrows, the antialiasing works well.

<http://osgeo-org.1560.x6.nabble.com/file/n5107413/exampleantialias.png&gt;

wms-request:

http://localohost:8080/geoserver/wms?LAYERS=layergroup&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A3067&BBOX=388400.0,6714800.0,388900.0,6715300.0&WIDTH=500&HEIGHT=500&format_options=antialias:none

regards,

Jakob

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/2-5-Antialias-off-option-for-svg-symbols-is-not-working-correctly-tp5107413.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

I actually winder if that is antialiasing you are seeing, or just blurbing based on a) drawing the SVG into a an image and then b) drawing the image rotated appropriately? The result would be a slight blurring based on how raster content is drawn …

Jody

···

Jody Garnett

On Wed, Mar 5, 2014 at 12:43 AM, Jakob Ventin <jventin@anonymised.com> wrote:

Hi all,

very pleased to see that this is beeing worked on, it is crucial for us to
be able to disable antialiasing for svg-symbols. ([GEOS-5729] - Antialiasing
can not be turned off for svg-symbols)

Overall, antialiasing for svg-symbols seems to work well, even though I
have not had time yet to look at the quality.

There is, however, one main problem. It seems that antialiasing is not
turned off when a svg-symbol is rotated (see attached picture, yellow and
green ellipses). One strange thing is that two symbols with same sld rule
and svg-symbol might end up both antialiased and none-antialiased in the
same picture (blue ellipses.)

For green arrows, the antialiasing works well.

<http://osgeo-org.1560.x6.nabble.com/file/n5107413/exampleantialias.png>

wms-request:

http://localohost:8080/geoserver/wms?LAYERS=layergroup&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A3067&BBOX=388400.0,6714800.0,388900.0,6715300.0&WIDTH=500&HEIGHT=500&format_options=antialias:none

regards,

Jakob


View this message in context: http://osgeo-org.1560.x6.nabble.com/2-5-Antialias-off-option-for-svg-symbols-is-not-working-correctly-tp5107413.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

On Tue, Mar 4, 2014 at 2:43 PM, Jakob Ventin <jventin@anonymised.com> wrote:

Hi all,

very pleased to see that this is beeing worked on, it is crucial for us to
be able to disable antialiasing for svg-symbols. ([GEOS-5729] -
Antialiasing
can not be turned off for svg-symbols)

Overall, antialiasing for svg-symbols seems to work well, even though I
have not had time yet to look at the quality.

There is, however, one main problem. It seems that antialiasing is not
turned off when a svg-symbol is rotated (see attached picture, yellow and
green ellipses). One strange thing is that two symbols with same sld rule
and svg-symbol might end up both antialiased and none-antialiased in the
same picture (blue ellipses.)

What you see is not antialiasing, it's resampling, rotation make a pixel
that was at an integer position to become a float one, thus it gets
partially painted across 2 to 4 pixels instead.

I don't believe there is anything we can do, but feel free to look into the
painting code and see if you can change it to avoid the issue, here:
https://github.com/geotools/geotools/blob/master/modules/library/render/src/main/java/org/geotools/renderer/lite/StyledShapePainter.java

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

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