WMS GetFeatureInfo XML Format error

Paul Spencer pagameba at MAGMA.CA
Thu Sep 16 08:31:54 EDT 2004


you must add DUMP TRUE to your layer if you want it to return XML results.

Bastarrika Izagirre wrote:

> Hi all:
> I have problems with GetFeatureInfo request. I want the response in
> XML format and i receive it in text/plain format.
> I have added in my .map file the   WMS_FEATURE_INFO_MIME_TYPE
> 'text/xml' parameter so GetCapabilities response is:
>
> <GetFeatureInfo>
>       <Format>text/plain</Format>
>       <Format>text/xml</Format>
>       <Format>application/vnd.ogc.gml</Format>
>       <DCPType>
>         <HTTP>
>           <Get><OnlineResource
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xlink:href="D:/mapserver_aplic/templ.html?"/></Get>
>           <Post><OnlineResource
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xlink:href="D:/mapserver_aplic/templ.html?"/></Post>
>         </HTTP>
>       </DCPType>
>     <! /GetFeatureInfo>
>
> when I make the GetFeatureInfo request with the option FORMAT=text/xml
> i get the error
>
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.0">
> <ServiceException code="InvalidFormat">
> msWMSLoadGetMapParams(): Image handling error. Unsupported output
> format (text/xml).
> </ServiceException>
> </ServiceExceptionReport>
> If I don't specify the Format parameter the request is valid in plain
> text format.
> Could someone help me?
> Thanks,
> aitor
>
> ------------------------------------------------------------------------
> Consigue aquí las mejores y mas recientes ofertas de trabajo en
> América Latina y USA: Haz clic aquí...
> <http://g.msn.com/8HMAES/2743??PS=47575>



More information about the mapserver-users mailing list