[mapserver-users] WMS query response in GML?

Debbie Pagurek pagurekd at agr.gc.ca
Fri Sep 20 12:04:31 PDT 2002


Hi everyone,

What do I have to add to my mapfile for a WMS server application in order to get a query to return in GML format?

Today someone asked me why my WMS server application doesn't return a query in GML.  For instance, he is using:

http://linuxgurrl.agr.ca/cgi-bin/mapeco?VERSION=1.1.0&REQUEST=GetFeatureInfo&X=117&Y=220&QUERY_LAYERS=Ecozones&FEATURE_COUNT=5&INFO_FORMAT=application/vnd.ogc.gml&FORMAT=image/gif&WIDTH=628&HEIGHT=419&SRS=EPSG:42304&BBOX=-523173.3130132924,-217212.76775886957,6123173.313013293,4217212.767758869&LAYERS=Ecozones&STYLES=&

and the response he gets is:

<?xml version="1.0" encoding="UTF-8"?>
<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>

and he says:
... which, besides not containing any feature information, isn't even valid
XML because there is no ">" at the end of the msGMLOutput start element.

I know that a regular GetFeatureInfo request works - i.e. one that doesn't specify INFO_FORMAT and the result for 
http://linuxgurrl.agr.ca/cgi-bin/mapeco?VERSION=1.1.0&REQUEST=GetFeatureInfo&X=117&Y=220&QUERY_LAYERS=Ecozones&FEATURE_COUNT=5&FORMAT=image/gif&WIDTH=628&HEIGHT=419&SRS=EPSG:42304&BBOX=-523173.3130132924,-217212.76775886957,6123173.313013293,4217212.767758869&LAYERS=Ecozones&STYLES=&

is 

GetFeatureInfo results:

Layer 'Ecozones'
  Feature 1: 
    ZONE = '2'
    ENAME = 'Northern Arctic'
    FNAME = 'Haut-Arctique'

Any pointers would be much appreciated!!!

Thanks,
D. Pagurek







More information about the MapServer-users mailing list