[Mapserver-users] GetFeatureInfo problems
Daniel Morissette
morissette@dmsolutions.ca
Mon, 20 Oct 2003 11:20:07 -0400
bartvde@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
--
------------------------------------------------------------
Daniel Morissette morissette@dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users