[Mapserver-users] Legend with overlay symbol

W. Steph chewbizz at hotmail.com
Tue Jun 17 05:27:31 EDT 2003


Hello all !!

Here's my problem :
I made two simple symbols :

A circle (named round because i saw a post where it is said that circle is a 
keyword) :

  SYMBOL
    NAME "Round"
    TYPE ELLIPSE
    FILLED TRUE
    POINTS 1 1 END
  END

And a triangle :

  SYMBOL
    NAME "FilledTriangle"
    TYPE vector
    Filled true
    POINTS
	0 4
	2 0
	4 4
	0 4
    END
  END

Now, I use these two symbols in my map file in order to display a circle 
which contains a triangle for one of my layers :

  LAYER
    [...]
    TYPE POINT
    CLASS
      [...]
      SYMBOL "Round"
      SIZE 16
      COLOR 249 139 105
      OUTLINECOLOR 0 0 0
      OVERLAYSYMBOL "FilledTriangle"
      OVERLAYSIZE 8
      OVERLAYCOLOR 0 0 0
      OVERLAYOUTLINECOLOR 0 0 0
    END
  END

It works fine : it displays a triangle within a circle.
BUT the corresponding legend icon does not !
It displays the circle well, but there are many little triangles inside :/ 
(5 triangles actually)
I think this was intentionnaly made by the developpers for some reason, but 
in my case, the legend icon doesn't reflect the real icon,and users can't 
easily recognize it.

So I tried to use a gif Image instead, but that does not work :(
It displays a blank image although the image is found by map server. (If i 
change the name of the file, I get an error)

Please help me !!!
Thanks

Steph

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr/worldwide.asp




More information about the mapserver-users mailing list