Query Template

Joost van Ulden jvanulde at NRCAN.GC.CA
Wed Mar 23 12:03:12 EST 2005


Hi all,

I am trying to get the name of the current layer written into the query
template of a getFeature request.  I can't use [cl] for obvious reasons so
I need to access the wms_title metadata for the layer.  I have tried
[metadata_wms_title] and that does not work.  Any ideas would be helpful.
Here is my layer snippet:

LAYER
  NAME "CNTRY92_SHP"
  PROJECTION
   "init=EPSG:4326"
  END

  TYPE polygon
  STATUS ON
  DATA "CNTRY92.SHP"
  TEMPLATE "CNTRY92.xml"
  TOLERANCE 10
  DUMP TRUE

  CLASS
   NAME 'Feature'
   COLOR 204 204 204
  END

  METADATA
   "wms_title"  "Countries"
   "wms_abstract" "Countries"
   "wms_srs"  "EPSG:4326"
  END

 END



More information about the mapserver-users mailing list