antialias lines

Rodrigo Martín LÓPEZ GREGORIO rodrigomlg at GMAIL.COM
Thu Sep 13 12:43:19 EDT 2007


Hi Bailey.

To give width to a cartoline symbol you need to use the SIZE property of
STYLE element instead of WIDTH.

IMAGETYPE png24

OUTPUTFORMAT
         NAME png24
         DRIVER "GD/PNG"
         MIMETYPE "image/png"
         IMAGEMODE RGB
         EXTENSION "png"
END

SYMBOL
         NAME 'cartoline'
         TYPE cartoline
         LINECAP round
         LINEJOIN round
         LINEJOINMAXSIZE 3
END



LAYER
        NAME "Contours"
        STATUS on
        TYPE LINE
        DATA "Contours"
        SYMBOLSCALE 24000
        TRANSPARENCY alpha
        CLASS
                 STYLE
                          COLOR 000 000 000
                          SYMBOL "cartoline"
                          ANTIALIAS TRUE
                          SIZE 3
                  END
        END
END

Rodrigo.


On 9/12/07, Bailey Landress <bailey at texassabal.com> wrote:
>
> Trying to fix jagged lines.  See anything wrong with the Mapfile below?
> When I change IMAGEMODE to RGBA the background of my map turns
> black.  Also
> if I take out   SYMBOL "cartoline" from the Style tag under Layer, I do
> not
> see any change in regard to antialiasing.  Any help would be greatly
> appreciated.  Thanks.
>
> MapServer version 4.10.2
>
> In MAP:
>
> IMAGETYPE png24
>
> OUTPUTFORMAT
>           NAME png24
>           DRIVER "GD/PNG"
>           MIMETYPE "image/png"
>           IMAGEMODE RGB
>           EXTENSION "png"
> END
>
> SYMBOL
>           NAME 'cartoline'
>           TYPE cartoline
>           LINECAP round
>           LINEJOIN round
>           LINEJOINMAXSIZE 3
> END
>
>
>
> LAYER
>          NAME "Contours"
>          STATUS on
>          TYPE LINE
>          DATA "Contours"
>          SYMBOLSCALE 24000
>          TRANSPARENCY alpha
>          CLASS
>                   STYLE
>                            COLOR 000 000 000
>                            SYMBOL "cartoline"
>                            ANTIALIAS TRUE
>                            WIDTH 2
>                    END
>          END
> END
>
>
> Bailey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070913/a04a5d17/attachment.html


More information about the mapserver-users mailing list