Hatching a polygon
Jim White
jbw2003 at EARTHLINK.NET
Tue Apr 3 09:11:48 PDT 2007
We use cross-hatched polygons on our site that display the underlying map behind the cross-hatch. Hope this part of our mapfile
is useful.
OUTPUTFORMAT
NAME mypng
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE rgba
EXTENSION "png"
TRANSPARENT ON
END
SYMBOL
NAME 'hatch-lines'
TYPE HATCH
END
TYPE POLYGON
TRANSPARENCY alpha
CLASS
STYLE
SYMBOL 'hatch-lines'
COLOR 255 0 0
ANGLE 60
SIZE 10
WIDTH 2
END
STYLE
WIDTH 2
OUTLINECOLOR 255 0 0
END
END
James White
Programmer
Biodiversity and Spatial Information Center
North Carolina State University
www.basic.ncsu.edu
More information about the MapServer-users
mailing list