There are 2 ways: - use WMS/WFS to get service metadata or - do a simple query (any query will do) and use the [items] tag in a template to get a comma delimited list of item names
Fastest query would be an index query. It is a bit of a hack but it works and the same template can be used for any layer. I added a section to the DNR Test Suite to show how: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ Steve >>> Bob Basques <[EMAIL PROTECTED]> 12/23/05 5:29 PM >>> All, Any ideas on how to query a SHP file for all of it's Attribute columns through MapServer? I'm wanting to set up a way to select which label to use so that the user can pick which label from the attributes available. Do I need to build a middle ware for this? It seems like a lot of work to keep a MAPfile up to date with regard to what the SHP has for attributes and a LABEL definition in the MAPfile. Once I have a list of valid Column names I can pass the NAME in as a CGI parameter, but how to get the list through MapServer? Any ideas? bobb
