[mapserver-users] GetFeatureInfo error

Steve White steve at online-archaeology.co.uk
Sun Jul 6 04:04:41 PDT 2008


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
<http://localhost/scripts/mapserv.exe?map=MedievalBattlefields.map&SERVICE=W
MS&VERSION=1.1.0&REQUEST=GetFeatureInfo&X=1127&Y=336&QUERY_LAYERS=MedievalBa
ttlefields&LAYERS=MedievalBattlefields&INFO_FORMAT=text/html&BBOX=-19.511718
75,48.69096039092549,13.07373046875,59.94400716933026&WIDTH=768&HEIGHT=768&S
RS=EPSG:4326&FORMAT=text/html>
&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&HE
IGHT=768&SRS=EPSG:4326&FORMAT=text/html

 

Any ideas why the error is being thrown?

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


More information about the MapServer-users mailing list