Mapserver as WMS: Query

Luca Manganelli luca76 at GMAIL.COM
Wed Aug 9 09:59:54 EDT 2006


Hi,

I'm trying to make QUERY via WMS working.

In the guide from:

http://mapserver.gis.umn.edu/docs/howto/wms_server

there are three ways:

# GetFeatureInfo: return info about feature(s) at a query (mouse
click) location. MapServer supports 3 types of responses to this
request:

    * Text/plain output with attribute info.
    * Text/html output using MapServer query templates specified in
the CLASS template parameter. The MIME type returned by the Class
templates defaults to text/html and can be controlled using the
metadata "wms_feature_info_mime_type".
    * Gml features.

well, in my map file I defined:

	LAYER
		NAME "trees"
		DATA "base/tree"
		METADATA
			"wms_title" "trees"
    			"gml_include_items" "all"
		END
  		PROJECTION
   			 "init=epsg:26591"
		END
		TYPE LINE
		STATUS ON
		#TRANSPARENCY 50
		CLASS
			NAME "trees"
			STYLE
				COLOR 0 255 0
			END
		END
		TEMPLATE "tree.html"
	END


the TEMPLATE "tree.html" contains:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/transitional.dtd">
<html>
  <head>
    <title>MapServer Template Sample</title>
  </head>

  <body>
	<b>[cl]</b><br>
	id [TREE_ID] - type [TREE_TYP]
  </body>
</html>

but in my WFS client (arcmap) it doesn't return me any query result
(but I see the layer)




-- 
"Work only as many hours as you can be productive and only as many hours as
 you can sustain."  - Kent Beck, in "Extreme Programming Explained"

http://www.trapanator.com/blog



More information about the mapserver-users mailing list