[Mapserver-users] GetFeatureInfo problem with getting GML back

bartvde at xs4all.nl bartvde at xs4all.nl
Tue Oct 21 05:02:55 EDT 2003


Hi list,

Daniel's solution did the trick for the default info_format. I just added
a tempate tag to a non-existent blank.html file ( TEMPLATE "blank.html" )

GetFeatureInfo results:

Layer 'Prov'
  Feature 8:
    PROVCODE = '28'
    PROVNR = '28'
    PROVNAAM = 'Zuid-Holland'
    INWONERS = '3360591'
    GROEI = '1680'
    NLPR_R98_I = '9'
    VALUE = '58.000'

But when I do the same request with info_format=application/vnd.ogc.gml I
get:

<?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/2001/XMLSchema-instance">
</msGMLOutput>

So here my info is missing.

Does anybody have an idea what could be the problem?

BTW: with what kind of info_format does Chameleon use to request
GetFeatureInfo?

Best regards,
Bart

From: Daniel Morissette <morissette at dmsolutions.ca>
To: bartvde at xs4all.nl
Subject: Re: [Mapserver-users] GetFeatureInfo problems
Date: Mon, 20 Oct 2003 11:20:07 -0400

bartvde at xs4all.nl wrote:
Hi list,

I have a problem getting results back from a GetFeatureInfo request to a
Mapserver CGI. My layer is a polygon shapefile.

I always get:

GetFeatureInfo results:

Search returned no results.

This is my GetFeatureInfo request:

http://reserve1/cgi-bin/mapserv_40.exe?map=/ms4w/apps/geoservices02/map/
geostreets.map&SERVICE=WMS&VERSION=1.1.0&LAYERS=prov&QUERY_LAYERS=prov&FORMAT=image/
png&TRANSPARENT=TRUE&bbox=50000,350000,250000,550000&srs=EPSG:28992&width=800&height=800&request=GetFeatureInfo&x=300&y=500

If I perform a map request:
http://reserve1/cgi-bin/mapserv_40.exe?map=/ms4w/apps/geoservices02/map/
geostreets.map&SERVICE=WMS&VERSION=1.1.0&LAYERS=prov&QUERY_LAYERS=prov&FORMAT=image/
png&TRANSPARENT=TRUE&bbox=50000,350000,250000,550000&srs=EPSG:28992&width=800&height=800&request=GetMap

I get the attached map.

Does anybody have an idea what the problem could be?

Thanks in advance.

Best regards,
Bart


------------------------------------------------------------------------



Did you set the 'prov' layer to be queryable in the mapfile?  To be
queryable a layer needs to have the
TEMPLATE layer (or class) parameter set.  You can also tell if the layer
is queryable by looking at the
capabilities.  There will be a queryable=0|1 parameter in the <Layer...> tag.

Daniel



More information about the mapserver-users mailing list