[mapserver-users] problems when requesting for feature info in gml format

Hao Ding hdi12@it.canterbury.ac.nz
Sun, 08 Sep 2002 13:50:28 +1200


Hello,

I got some problems when request GetFeatureInfo to the MapServer for GML 
response.

I used itasca demo data as the sample dataset. When requesting the lake 
feature using default INFO_FORMAT with the URL below, I can get the results.

http://localhost:8080/cgi-bin/mapserv?VERSION=1.1.0&REQUEST=GetFeatureInfo&SRS=EPSG:4326&BBOX=388014.0,5200400.0,500802.0,5313160.0&WIDTH=800&HEIGHT=400&FORMAT=image/gif&LAYERS=lakespy2&STYLES=default&TRANSPARENT=TRUE&QUERY_LAYERS=lakespy2&X=274&Y=192

GetFeatureInfo results:

Layer 'lakespy2'
   Feature 23043:
     gid = '844'
     area = '407475.09544'
     perimeter = '2302.07951'
     usclass = '421'
     dowlknum = '31081700'
     dow_verif = '0'
     lake_name = ''
     lake_class = '0'
     elevation = '1296'
     acres = '100.687'
     perfeet = '7553.123'

If I add the parameter INFO_FORMAT=application/vnd.ogc.gml, the body of 
the gml file I got was empty

<?xml version="1.0" encoding="ISO-8859-1"?>

<msGMLOutput
	 xmlns:gml="http://www.opengis.net/gml"
	 xmlns:xlink="http://www.w3.org/1999/xlink"
	 xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
</msGMLOutput>

I just wonder if I need to do something in the mapfile for gml export? I 
  also don't know what the object "dump" in the mapfile is used for.(I 
saw the sentence "DUMP true" in some Layers).

Thanks very much for any help!!!
Hao