Mapserver as WMS: Query
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Wed Aug 9 07:03:37 PDT 2006
Luca,
Try setting DUMP TRUE in the LAYER object?
..Tom
-----Original Message-----
From: UMN MapServer Users List on behalf of Luca Manganelli
Sent: Wed 09-Aug-06 09:59
To: MAPSERVER-USERS at LISTS.UMN.EDU
Cc:
Subject: [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
More information about the MapServer-users
mailing list