[Mapserver-users] Query template - Extract: Layer Class Name

Julien, Heryk hjulien at nrcan.gc.ca
Tue Jan 6 13:26:32 PST 2004


Daniel,
Lets say I send this kind of query:
http://www.cgcq.rncan.gc.ca/cgi-bin/mapserver/mapserv.exe?
map=d:\webcgcq\gasl_clf\mapserver\mapfiles\transect1.map&
mode=query&
layer=Transect1poly&
imgext=605652.980000+4900665.392862+864417.475000+5159507.282138&
img.x=189&
img.y=199&
IMGSIZE=400%20400&

Since the mode is query, the result is the mapfile query template with the
feature identifications requested from the shapefile dbf. However the legend
tags are not interpreted!

Is there a way to retrieve the "layer class name" of the object selected in
the map so that I may insert it into the query template response?


Query template:

Code: [CODE]<br>
Identifiant = [SP_OBJ_ID]<br>
Dataset_ID = [DATASET_ID]

[leg_layer_html]
[leg_layer_name]
[/leg_layer_html]

[leg_class_html]
[leg_class_name]
[/leg_class_html]




-----Message d'origine-----
De : Martin, Daniel A [mailto:Daniel.A.Martin at erac.com]
Envoyé : Friday, December 19, 2003 4:29 PM
À : Julien, Heryk; mapserver-users at lists.gis.umn.edu
Objet : RE: [Mapserver-users] Query template - Extract: Layer Class Name


[leg_class_name]
But it must be used within a [leg_class_html] block.

For example, my legend template is attached.  I think it is a good example
of how to effectively use an html template.  It is designed to be used in
your client within a td element, such as:

<table><TR><TD>[legend]</TD></TR></table>

-Dan


> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu 
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> Julien, Heryk
> Sent: Friday, December 19, 2003 2:29 PM
> To: 'mapserver-users at lists.gis.umn.edu'
> Subject: [Mapserver-users] Query template - Extract: Layer Class Name
> 
> 
> Hi to all,
> With the object [cl]you can retrieve the current "layer name" 
> from your mapfile and output it into your query template 
> (http://mapserver.gis.umn.edu/doc40/template-reference.html#qu
ery). Is there a way to retrieve the "layer class name" of the object
selected in the map so that I may insert it into the query template
response?

Thanks
==========================================
Héryk


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list