[mapserver-users] GetfeatureInfo params in Map-File

Michael Östling michael.ostling at metagis.se
Wed Jun 4 16:59:56 EDT 2008


> Hi,
> I have been struggling a couple of hours trying to understand the correct
> configuration of
> a WMS-service with Mapserver (5.0) where I would like to use
> GetFeatureInfo. 
> 
> I want to make a call to getFeatureInfo and have the result in GML
> I use Openlayers to view and query the service
> 
> Any way I do I get a INFO_FORMAT=text/html in the request which returns an
> error from MapServer (unsupported INFO_FORMAT (text/html)
> If I change it manually to INFO_FORMAT=application/vnd.ogc.gml (or
> INFO_FORMAT=gml)
> and type in the URL directly in Internet Explorer then it works. 
> 
> 
> I have set the following
> 
> For the MAP/WEB tag I have set
> QUERYFORMAT application/vnd.ogc.gml
> 
> For the LAYER tag should the following TAGS be set
> DUMP TRUE 
> TEMPLATE foo
> 
> I can't se the logic in using the TEMPLATE here, I just want plain
> XML/GML, anyhow I set it to foo as I seen someone else has done.
> But if I understand it correctly so by using the TEMPLATE-tag then the
> layer is queryable.
> 
> For the LAYER/METADATA tag I have tested
> "gml_include_items" "all"
> "wms_include_items" "all"
> with no change.
> 
> 
With the above setting all calls to GetFeatureInfo is using
INFO_FORMAT=text/HTML
> I have tried it in ArcMap and Openlayers (where I also tried to set
> INFO_FORMAT=gml) as an optional argument.
> 
> Anyone who can se what wrong I'm doing? I can't find any more
> documentation on the issue.
> 
> 
> regards
> Michael
> 
> ------------------------------------------------------------------
> MetaGIS AB 
> Michael Östling
> Mob: 070-279 19 76
> Tel: 023 - 702 20 10
> ePost: michael.ostling at metagis.se
> Adress: Britsarvsvägen 28a, 791 36 FALUN, Sweden
> Org Nr: 556638-7170
> ------------------------------------------------------------------
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080604/71257a3f/attachment.html


More information about the mapserver-users mailing list