Defining simple symbols

Dave Stone D.Stone at ED.AC.UK
Wed Mar 15 09:30:40 PST 2006


Thanks, David, for unconfusing me! I thought I was defining 'circle' inline
in the .MAP file, but clearly the examples I was using were out-of-date or
ambiguous. I have followed your tip so what I now have is a separate file
(same directory as .MAP) 'symbol.list' containing:

SYMBOL
  NAME "circle"
  TYPE ellipse
  FILLED true
  POINTS
    1 1
  END
END

and in the .MAP file:

LAYER
. . .
    CLASS
      NAME        "locations"
      STYLE
        SYMBOL      "circle"
        SIZE        5
        COLOR       255 0 0
        OUTLINECOLOR 0 0 0
      END
    END
 . . .
END

which works fine.

Dave



More information about the MapServer-users mailing list