[mapserver-users] [layername_desc]
christy
christym@geoplan.ufl.edu
Wed, 13 Nov 2002 16:18:10 -0500
--------------B5AD046102311D82018E6F0D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------B5AD046102311D82018E6F0D
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello all!
<p>I've been outputting the DESCRIPTION of specific LAYERs in html query
templates with no problem using [layername_desc].
<br>For example, a layer called "nwi" has the DESCRIPTION "National
Wetlands Inventory" and this description is obtained using [nwi_desc].
<p>Is there a way to dynamically output the DESCRIPTION for <i>any</i>
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 <i>not</i> specific to any one
layer and therefore can output the DESCRIPTION of <i>any</i> layer queried.
<p>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".
<p>Any ideas??
<p>Thanks,
<br>Christy</html>
--------------B5AD046102311D82018E6F0D--