[mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid

thomas bonfort thomas.bonfort at gmail.com
Wed Jan 7 03:21:58 EST 2009


that's what antialiasing is supposed to do, as your 1 pixel wide grid
doesn't fall exactly on a pixel.
I don't think there is a workaround.

regards,
thomas

On Mon, Jan 5, 2009 at 13:28, Maximsu <maxims731 at inbox.ru> wrote:
>
> I have very thick lines in the grid layer when i use agg/png driver. See the
> map  http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU
> here . They must be the 1 pixel width. With the gd/png driver all OK. Width
> is set to 1 but it does not matter. Is there a way to switch off the line
> antialiasing for grid layer? Or some another way to solve this problem?
> There is the layer definition:
>
>  LAYER
>   NAME grid2
>   GROUP "Grid"
>   STATUS ON
>   TYPE LINE
>   LABELCACHE ON
>   MINSCALE 1000001
>   MAXSCALE 3000000
>   METADATA
>    GridLabelSizeMin "8"
>    GridLabelSizeMax "11"
>   END
>   CLASS
>     NAME "Graticule"
>     STYLE
>      COLOR 72 72 72
>      width 1
>     END
>     LABEL
>       COLOR  255 0 0
>       SIZE 8
>       POSITION CC
>       PARTIALS TRUE
>       BUFFER 5
>       OUTLINECOLOR 255 255 255
>       TYPE TRUETYPE
>       FONT "arial"
>       FORCE TRUE
>     END
>   END
>   PROJECTION
>    "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
>   END
>   GRID
>    LABELFORMAT "DD"
>    MinInterval 1
>    MaxInterval 5
>   END
>  END
>
> --
> View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2112673.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list