[mapserver-users] Re: Crispness of road edge
YC Nyon
ycnyon at pd.jaring.my
Thu Sep 11 08:33:17 PDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080911/1dc66ec1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare.gif
Type: image/gif
Size: 86663 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080911/1dc66ec1/attachment.gif>
More information about the MapServer-users
mailing list