[Geoserver-users] How to turn off antialiasing for svg symbols?

Hi all,

in a WMS-request it is possible to turn off antialiasing with

FORMAT_OPTIONS=antialias:none

This, however, does not turn off antialiasing for svg-symbols.

This is how I style symbols in my SLD:

            <Graphic>
              <ExternalGraphic>
                <OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href=symbol.svg"/>
                <Format>image/svg+xml</Format>
              </ExternalGraphic>
              <Size>
                <ogc:Literal>11</ogc:Literal>
              </Size>
            </Graphic>

Neither does it turn off antialiasing for <GraphicFills> as in the example
from my SLD below.

          <PolygonSymbolizer
uom="http://www.opengeospatial.org/se/units/metre&quot;&gt;
            <Fill>
              <GraphicFill>
                <Graphic>
                  <Mark>
                    <WellKnownName>shape://horline</WellKnownName>
                    <Stroke>
                      <CssParameter name="stroke">#5ce6e6</CssParameter>
                      <CssParameter name="stroke-width">5.5</CssParameter>
                    </Stroke>
                  </Mark>
                  <Size>15.5</Size>
                </Graphic>
              </GraphicFill>
            </Fill>
          </PolygonSymbolizer>

Is there a way to turn off antialiasing in these two cases?
(geoserver 2.4.0 on Linux 2.6.32-358.18.1.el6.x86_64 x86_64)

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-turn-off-antialiasing-for-svg-symbols-tp5089155.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Anybody got anything on this?

As you can see from the attached picture, text and other objects on the map
are not antialiased when using
&FORMAT_OPTIONS=antialias:none in the WMS GetMap, but svg symbols and fills
whit WellKnownName are antialiased. Svg-symbol is the white round symbol
with black boarder, and GraphicFill is the green slash fill next to it. You
may need to zoom in the picture to obtain the antialiased behavior.

<http://osgeo-org.1560.x6.nabble.com/file/n5091280/peruskartta_(4).png&gt;

Best regards,
Jakob

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-turn-off-antialiasing-for-svg-symbols-tp5089155p5091280.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Tue, Nov 26, 2013 at 2:31 PM, Jakob Ventin <jventin@anonymised.com> wrote:

Anybody got anything on this?

As you can see from the attached picture, text and other objects on the map
are not antialiased when using
&FORMAT_OPTIONS=antialias:none in the WMS GetMap, but svg symbols and fills
whit WellKnownName are antialiased. Svg-symbol is the white round symbol
with black boarder, and GraphicFill is the green slash fill next to it. You
may need to zoom in the picture to obtain the antialiased behavior.

<http://osgeo-org.1560.x6.nabble.com/file/n5091280/peruskartta_(4).png
>

I think you should open a improvement request on
http://jira.codehaus.org/browse/GEOS, when SVG get rasterized they are
indeed painted with antialiasing on

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

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