Symbols in mapserver

James Sohr jms4 at PO.CWRU.EDU
Mon Apr 18 08:41:01 PDT 2005


Yes, your symbols can be a pre-made GIF image if you so desire.

Just add a symbol defintion to your mapfile or your symbols file like so:

      SYMBOL
      Name 'park'
      Type PIXMAP
      Image 'symbols/images/park.gif'
      END

You can even specify a color in the image to be transparent by using
the TRANSPARENT option along with the index number of the color to be
made transparent:

     SYMBOL
      Name 'park'
      Type PIXMAP
      Image 'symbols/images/park.gif'
      Transparent 7
      END

HTH,
  James




On Fri, 15 Apr 2005 12:25:43 -0400, Geoff Rowland
<geoffrey.rowland at NOAA.GOV> wrote:

>Hi,
>
>Can someone explain to me how symbols work in MapServer?  I am looking at
the code here that I see on the Wiki. What is 'phone' in the code below?
can this just be a .gif image?  I saw some code on creating symbols (in
this case, a star) but I would like to use premade images if possible.
>
>LAYER
>    NAME "INLINE"
>    TYPE POINT
>    STATUS ON
>   CLASS
>       NAME "0"
>       STYLE
>         COLOR 255 0 0 # red
>         MAXSIZE 300 # default 50
>         SYMBOL 'phone' #In my case was a nice phone image symbol
>         SIZE 16
>       END #style
>   END #class
> END #layer
>
>
>
>Thanks,
>Geoff
>
>--
>Geoffrey Rowland
>Technical Officer
>Climate Information Project
>NOAA Research
>Office of  Global Programs
>http://www.cip.ogp.noaa.gov
>Contractor,
>RGII Technologies, Inc., a Computer Horizons Company
>http://www.rg2.com
>Phone: 301-427-2344
>Fax : 301-427-2082
>geoffrey.rowland at noaa.gov



More information about the MapServer-users mailing list