Mapserver as WMS: Query

Eijnden, Bart van den (AGI) b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Aug 9 07:02:11 PDT 2006


Check your webserver's access log to see what request ArcMap is doing.

ArcMap 9.0 has a bug that it does not send the layers parameter in the request, which is manadatory.

Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Luca Manganelli
Verzonden: woensdag 9 augustus 2006 16:00
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] Mapserver as WMS: Query


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


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the MapServer-users mailing list