[mapserver-users] GetFeatureInfo error

Jeff McKenna jmckenna at gatewaygeomatics.com
Sun Jul 6 08:48:26 PDT 2008


On 6-Jul-08, at 7:04 AM, Steve White wrote:

> Trying to get some HTML by sending in a GetFeatureInfo request and  
> getting the following error:
>
> msWMSLoadGetMapParams(): Image handling error. Unsupported output  
> format (text/html).
>
> Here’s the test map file:
>
> MAP
>   NAME                                                 TESTMS
>   STATUS                                              ON
>   UNITS                                                 METERS
>   SHAPEPATH                                      "/scripts/"
>   IMAGECOLOR                                  0 255 255
>   SIZE 400 400
>    
> DEBUG                                                               ON
>   IMAGETYPE                                      PNG
>   EXTENT -4.35 56.14 -3.23 56.91
>
> WEB
>   METADATA
>     "wms_title"                                    "TEST MS"
>     "wms_onlineresource"             "http://localhost/scripts/mapserv.exe& 
> "
>     "wms_srs"                                      "EPSG:4326 EPSG: 
> 54004 EPSG:27700"
>     "wms_feature_info_mime_type" "text/plain"
>   END
>
> IMAGEPATH                                       "/tmp/"
> IMAGEURL                                          "/tmp/"
> LOG                                                       "/tmp/ 
> mapserver.log"
> TEMPLATE                                           "/tmp/ 
> template.html"
> EMPTY                                                  "/tmp/ 
> template.html"
>
> END
>
> PROJECTION
>   "init=epsg:4326"
> END
>
> SYMBOL
>   NAME "circle"
>   TYPE ellipse
>   FILLED true
>   POINTS
>     1 1
>   END
> END
>
> LAYER
>                  
> NAME                                                    
> MedievalBattlefields
>                 METADATA
>         "wms_title"                                                 
> "MedievalBattlefields"
>                 "gml_include_items"                     "all"
>                 "wms_include_items"                   "all"
>                 "wms_feature_info_mime_type"           "text/html"
>                 END
>                  
> TYPE                                                      POINT
>                  
> DATA                                                      
> MedievalBattlefields
>                 TEMPLATE                                           "/ 
> tmp/template.html"
>                  
> STATUS 
>                                                                 ON
>
>                 PROJECTION
>                                                                                 "init 
> =epsg:4326"
>                 END
>
>         CLASS
>                                 SYMBOL "circle"
>                                 SIZE 10
>                                 COLOR 0 0 255
>         END
>
> END #end of layer
>
> END # end of mapfile
>
> I’m sending in the GetFeatueInfo using a Url like this one:
>
> http://localhost/scripts/mapserv.exe?map=MedievalBattlefields.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetFeatureInfo&X=1127&Y=336&QUERY_LAYERS=MedievalBattlefields&LAYERS=MedievalBattlefields&INFO_FORMAT=text/html&BBOX=-19.51171875,48.69096039092549,13.07373046875,59.94400716933026&WIDTH=768&HEIGHT=768&SRS=EPSG:4326&FORMAT=text/html
>
> Any ideas why the error is being thrown?

try changing your web object's "wms_feature_info_mime_type" metadata  
value to "text/html" maybe, and then verify what formats are supported  
by checking your GetCapabilities response.

---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080706/a84bd1e8/attachment.htm>


More information about the MapServer-users mailing list