Scale-dependant symbols (using maxsize/minsize)?
Mike Leahy
mgleahy at ALUMNI.UWATERLOO.CA
Thu Dec 6 11:47:11 PST 2007
Hello List,
I know this is a topic that comes up often, but I have a rivers layer that
has hierarchical attributes assigned. I'd like to set this up in a mapfile
where the size of the symbols used to draw the lines reflect the level that
each river is in the hierarchy. I'd like when the map is at full extent
that only the largest rivers are displayed, but with a small symbol...as the
map is zoomed in, progressively smaller rivers should start to appear, while
the symbols for the larger rivers increase in width.
I know I can accomplish this by making a series of layers with
classes/styles that apply to specific scales. However, I'm trying to
understand the MAXSIZE/MINSIZE attributes that can be set for Style objects.
Is there any way I can use this to simplify my mapfile (i.e., so I can have
one layer with scale-dependant styles/classes)? I've tried using these
attributes, but so far it only seems like MINSIZE really has any effect on
the symbol size - I must be missing some other step to make this work...
I should note that I'm using this map in a Chameleon setup...I don't know if
that has any bearing on how the MINSIZE/MAXSIZE attributes are used.
Does anyone have any suggestions, or maybe know of some documentation that
explains how to use this?
Regards,
Mike
More information about the MapServer-users
mailing list