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

Hao Ding hdi12 at it.canterbury.ac.nz
Mon Sep 9 17:47:43 PDT 2002


Thanks, Steve. I've tried set DUMP to TRUE, but unfortunately I got 
"Internal Server Error". If I comment the sentence "DUMP true", I can 
get a gml response but no content as I said last time. Do I have to do 
some setting on the apache http server?

Thanks,
Hao

Steve Lime wrote:

> You must set DUMP to TRUE for any layer you want GML output for. That's
> there as a basic security feature.
> 
> Steve
> 
> Stephen Lime
> Data & Applications Manager
> 
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> 
> 
>>>>Hao Ding <hdi12 at it.canterbury.ac.nz> 09/07/02 08:50PM >>>
>>>>
> 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
> 
> 





More information about the MapServer-users mailing list