[mapserver-users] [layername_desc]

christy christym at geoplan.ufl.edu
Wed Nov 13 16:18:10 EST 2002


Hello all!

I've been outputting the DESCRIPTION of specific LAYERs in html query templates with no problem using [layername_desc].
For example, a layer called "nwi" has the DESCRIPTION  "National Wetlands Inventory" and this description is obtained using [nwi_desc].

Is there a way to dynamically output the DESCRIPTION for any QLAYER selected?  For example, in one query the QLAYER might be "majrds" with a
DESCRIPTION of "Major Roads".  In a second query the QLAYER is "cntbnd" and the DESCRIPTION is "County Boundaries".  I'm trying to write a generic
query template that is not specific to any one layer and therefore can output the DESCRIPTION of any layer queried.

I've tried using "[[qlayer]_desc]" in my html code.  But, this doesn't work.  For the "majrds" example above, I'd get "[majrds_desc]" instead of the
actual description which is "Major Roads".

Any ideas??

Thanks,
Christy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021113/c428a559/attachment.html


More information about the mapserver-users mailing list