Thanks, I think I understand the problem from your end.  It seemed like a
good idea to put the colors in my postgresql tables instead of having 23 or
such classes.

What would make life easier would be "Named" styles.  Then I could have one
set of poly background colors to use for the various layers.  "Named" Label
blocks would be nice too.  Instead of editing every layer to change text
size in every style in every class...  I'm sure you get the idea.

Thanks for your help... and MapServer!

Worth

-----Original Message-----
From: Lime, Steve D (DNR) [mailto:[email protected]] 
Sent: Monday, July 26, 2010 5:05 PM
To: Worth Lutz; [email protected]
Subject: RE: [mapserver-users] How do I get a Legend with a variable COLOR
in the CLASS

Hi Worth: At the moment, you can't get a legend in this case. The legend
code isn't smart 
Enough to discover potential colors and render them. Also, class names
cannot be bound to an
attribute...

If you really need legends produced by MapServer then attribute binding
probably isn't
going to work for you.

Steve

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Worth Lutz
Sent: Monday, July 26, 2010 9:27 AM
To: [email protected]
Subject: [mapserver-users] How do I get a Legend with a variable COLOR in
the CLASS

I'm trying to set my colors from a postgres table instead of having many
classes in my mapfile.  Here is an example of what I think I should use to
get a legend for this layer.

CLASS
  NAME [name]
  STYLE
    COLOR [color]
    OUTLINECOLOR 0 0 0
    WIDTH 1
  END
END


Only the NAME line dies with a parse error as it appears to be looking for a
string ([MapServer Error]: getString(): Parsing error near ([name])).  It
seems that the NAME line cannot take an attribute.

How do I get a legend for this layer?

Is this the method I should be using for this use?

Worth

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to