Add new symbol in symbols.sym

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Apr 5 15:01:35 EDT 2006


Jonathan,

Try putting quotes around the symbol name in the class blocks.

-Steve W

Jonathan wrote:
> Dear all,
> 
> I added a new symbol in the symbols.sym please see code below.
> 
> Symbol
> Type PIXMAP
> IMAGE 'view1.gif'
> Name 'viewpoint1'
> Transparent 3
> END
> END
> 
> however when I used it for a layer, this error came up: *Warning*: 
> [MapServer Error]: msLoadMap(): Undefined overlay symbol "viewpoint" in 
> class 1, style 0 of layer ViewPoints.
> 
> the layer in the map file is defined as:
> 
> LAYER
>   NAME ViewPoints # name of the layer
>   METADATA
>     "DESCRIPTION" "View Points"
>   END
>   TYPE point # feature type 
>   STATUS ON
>   DATA viewpoints
>   CLASSITEM "viewAngle"
>   CLASS
>       EXPRESSION "0"
>       SYMBOL viewpoint0
>     SIZE 8
>   END
>   CLASS
>       EXPRESSION "1"
>       SYMBOL viewpoint1
>     SIZE 15
>     TEMPLATE "ttt_query.html"
>      NAME "viewangle1"
>      COLOR 255 0 0       
>   END
>   CLASS
>       EXPRESSION "2"
>       SYMBOL viewpoint2
>     SIZE 8  
>   END
>   TOLERANCE 5
> END
> 
> 
> Any idea why this is happenning?
> regards
> 
> -- 
> Jonathan



More information about the mapserver-users mailing list