[Mapserver-users] Q: Dynamic Legends

Jason M. Nielsen jnielsen at aero-graphics.com
Fri Jan 30 07:02:25 PST 2004


Quoting Ed McNierney <ed at topozone.com>:

> Daniel -
> 
> I don't think that's quite the scenario being described.  I have a
> similar problem that is not soluble AFAIK with current MapServer
> technology.
> 
> I have a Land Use map that covers the state with polygons, each of which
> is assigned one of 37 land use codes.  Any given map is unlikely to
> display more than 3 or 4 different codes, but they all have a legend
> with 37 entries in it, making the 3 that are actually ON the map hard to
> find.
> 
> It's not a matter of selecting features by spatial scale, but by
> selecting legend symbology based on data that is actually in the current
> view frame.
> 
> 	- Ed

If this data was in postgresql could you not force the parsing of the returned
data and use that in turn to generate the legend dynamically? Just a quick
thought on it would seem to indicate this would not be done by mapserver. The
creation of the legend that is but it would be the one looking for the data (ie:
grabbing only that which literally shows up in your current view) and hence
indirectly giving you the information you need to do so.  Still being an extreme
novice at this software I have no idea if that is even feasible.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the MapServer-users mailing list