[mapserver-users] Re: Crispness of road edge
thomas bonfort
thomas.bonfort at gmail.com
Sun Sep 28 11:55:50 PDT 2008
hi,
the output you're showing has been rendered with gd, not agg.
make sure openlayers is calling your wms server with your agg
outputformat, by adding a
format: 'agg'
to your layer options.
ps: the "antialias true" keywords are not necessary when using agg
cheers,
thomas
On Thu, Sep 11, 2008 at 17:17, YC Nyon <ycnyon at pd.jaring.my> wrote:
> Hi,
>
> I've been using the map file from http://boston.freemap.in/basemap.map
> to setup a mapserver 5.0 WMS and using Openlayers as the interface.
>
> The results has been good except the edges of the road doesn't seem to be
> sharp when compared with google or some samples i seen from Mapnik.
> I use AGG as the output.
> Have tinker with the antialias, width of the line, etc without much luck
>
> Below is snippets of my mapfile:
>
> OUTPUTFORMAT
> NAME 'AGG'
> DRIVER AGG/PNG
> IMAGEMODE RGB
> MIMETYPE "image/png; mode=24bit"
> FORMATOPTION "INTERLACE=OFF"
> END
>
>
> layer
> name roads_1sg
> group roads
> type line
> projection
> "init=epsg:4326"
> end
> status on
> data sg_road
> maxscale 1000
> classitem "KIND"
> labelitem fullname
> class
> EXPRESSION ('[KIND]' = "Secondary" OR '[KIND]' = "Minor Road" OR
> '[KIND]' = "Alley" OR '[KIND]' = "Unnamed Road")
> style
> color 192 192 192
> width 17
> antialias true
> end
> style
> color 255 255 255
> width 15
> antialias true
> end
> label
> type truetype
> antialias true
> font arial
> size 13
> position cc
> angle follow
> color 25 25 25
> outlinecolor 255 255 255
> buffer 10
> partials false
> mindistance 300
> MINFEATURESIZE 100
> end
> end
> class
> EXPRESSION ('[KIND]' = "Major Road" OR '[KIND]' = "Provincial
> Road")
> style
> color 185 174 155
> width 17
> antialias true
> end
> style
> color 255 255 115
> width 15
> antialias true
> end
> label
> type truetype
> antialias true
> font arialb
> size 13
> position cc
> angle follow
> color 25 25 25
> outlinecolor 255 255 115
> buffer 15
> partials false
> mindistance 300
> MINFEATURESIZE 100
> end
> end
> class
> EXPRESSION ('[KIND]' = 'Highway' OR '[KIND]' = 'Expressway' )
> style
> color 171 135 26
> width 18
> antialias true
> end
> style
> color 242 191 46
> width 16
> antialias true
> end
> end
> end
>
>
> _______________________________________________
> 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