[mapserver-users] RE: How to change the line width
woodbri at swoodbridge.com
woodbri at swoodbridge.com
Wed Aug 28 18:15:55 PDT 2002
William,
You need to create a symbol.sym file and include in it :
Symbol
Name 'circle'
Type ELLIPSE
Filled TRUE
Points
1 1
END
END
then add to the top of your make file
SYMBOLSET "/path/to/symbol.sym"
you can copy a more complete symbol file the the mapserver demo app.
-Steve
http://iMapTools.com
On 28 Aug 2002 at 19:21, Zhang, William wrote:
> Steve,
>
> Thank you for the response. After I added the SYMBOL 'circle' line, the map
> could not show. Here is my full map file.
>
> NAME alm
> EXTENT -122.383 37.46 -121.46 38
> SIZE 800 600
> SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
> LAYER # alm
> NAME "alm"
> DATA alm
> STATUS DEFAULT
> TYPE LINE
>
> CLASSITEM "CFCC"
> CLASS
> NAME "Highways"
> EXPRESSION /A1[0-9]/
> SYMBOL 'circle'
> SIZE 5
> COLOR 255 0 0
> END # end of class object
>
> END # end of layer object
> END # end of map file
>
> Do I miss something?
>
> Thanks,
>
> William
>
>
> -----Original Message-----
> From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com]
> Sent: Wednesday, August 28, 2002 4:08 PM
> To: 'mapserver-users at lists.gis.umn.edu'; Zhang, William
> Subject: Re: How to change the line width
>
>
> On 28 Aug 2002 at 18:45, Zhang, William wrote:
>
> > Hi,
> >
> > I searched the archives and found the similar question has been asked and
> > answered several times. But I still can not get clear solution. Here is
> what
> > I try to do. In my shape file, there are highways, major streets and minor
> > streets. I like to show them in different line widths and colors. So I
> write
> > the map file
> > .....
> > CLASSITEM "CFCC"
> > CLASS
> > NAME "Highways"
> > EXPRESSION /A1[0-9]/
> SYMBOL 'circle'
> > SIZE 5
> > COLOR 255 0 0
> > END # end of class object
> >
> > CLASS
> > NAME "MajorStreets"
> > EXPRESSION /A[2-3][0-9]/
> SYMBOL 'circle'
> > SIZE 3
> > COLOR 0 255 0
> > END
> >
> > CLASS
> > NAME "MinorStreets"
> > EXPRESSION /A[4-7][0-9]/
> > SIZE 1
> > COLOR 0 0 255
> > END
> > ....
> >
> > According to previous answers, SYMBOL 'circle' may need to be used here.
> But
> > I don't know how. Could somebody give me some help on this?
> >
> > Thanks,
> >
> > William Zhang
> >
> > Software Engineer
> > C-Cor.net
> > Phone: (925) 251-3019
> > Fax: (925) 467-0600
> > E-Mail: wzhang at c-cor.net
> >
> >
> >
> >
>
>
More information about the MapServer-users
mailing list