<br clear="all"><div>Thank you</div><div><br></div><div>Please, get this error: <br></div><br>msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html).<br><br>the capabilities of the service is: <br>
<br><a href="http://wwww.uptc.edu.co/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.3.0&request=GetCapabilities" target="_blank">http://wwww.uptc.edu.co/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.3.0&request=GetCapabilities</a><br>
<br>and the request is: <br><br><a href="http://10.0.32.22:8080/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=public.col&WIDTH=5&HEIGHT=5&SRS=EPSG:3116&BBOX=164948,22962,1806820,1985180&QUERY_LAYERS=public.col&INFO_FORMAT=text/html&I=1&J=1" target="_blank">http://10.0.32.22:8080/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=public.col&WIDTH=5&HEIGHT=5&SRS=EPSG:3116&BBOX=164948,22962,1806820,1985180&QUERY_LAYERS=public.col&INFO_FORMAT=text/html&I=1&J=1</a><br>
<br>changing: <br><br>INFO_FORMAT=text/plain, works <br><br>and my layer is <br><br><br> LAYER<br> NAME "public.col"<br> STATUS OFF<br> TYPE POLYGON<br> DATA "the_geom from public.colombia_limites_departamentales using unique gid using srid=3116"<br>
CONNECTIONTYPE POSTGIS<br> CONNECTION "user=postgres password=#### host=######## port=####### dbname=######"<br> DUMP TRUE #MFMH<br> MAXSCALE -1.0<br> MINSCALE -1.0<br> TRANSPARENCY 50<br> SIZEUNITS pixels<br>
LABELITEM "nombre_dpt"<br>
HEADER "getfeatureinfo_header.html" # header html template<br> TEMPLATE "getfeatureinfo_content2.html" # content html template<br> FOOTER "getfeatureinfo_footer.html" # footer html template<br>
PROJECTION<br> "init=epsg:3116"<br> END<br> CLASS<br> STYLE<br> COLOR 211 241 99<br> OUTLINECOLOR 0 0 102<br> WIDTH 1<br> END<br> TEMPLATE "getfeatureinfo_content2.html"<br> NAME "default"<br>
LABEL<br> FONT "vera"<br> ANGLE FOLLOW<br> COLOR 0 0 0<br> TYPE truetype<br> SIZE 5.599999904632568<br> END<br> END<br> METADATA<br> "wms_title" "public.col"<br> "wms_abstract" "generated by gvSIG"<br>
"wms_extent" "164948.448508268 22962.0012082234 1806815.88683738 1985175.02869968"<br> "gml_include_items" "all"#MFMH<br> "wms_feature_info_mime_type" "text/html; driver=imagemap"#MFMH<br>
"gml_include_items" "all"#MFMH<br> "wms_include_items" "all"#MFMH<br> "ows_feature_info_mime_type" "text/html; driver=imagemap"<br># "wms_include_items" "text/html"<br>
END<br> END <br><br><br><br>this is my table:<br><br>CREATE TABLE colombia_limites_departamentales<br>(<br> gid serial NOT NULL,<br> objectid integer,<br> id_espacia text,<br> area_ofici double precision,<br> nombre_dpt text,<br>
shape_area double precision,<br> shape_len double precision,<br> the_geom geometry,<br>..........)<br><br><br>the file getfeatureinfo_header.html is: <br><br><br> 1: <!-- MapServer Template --><br>2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/transitional.dtd" target="_blank">http://www.w3.org/TR/html4/transitional.dtd</a>"><br>
3: <html><br>4: <head><br>5: <!-- enforce the client to display result html as UTF-8 encoding --> <br>6: <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta><br>
7: <style type="text/css"><br>8: table, th, td {<br>9: border:1px solid #e5e5e5;<br>10: border-collapse:collapse;<br>11: font-family: arial; <br>12: font-size: 80%; <br> 13: color: #333333<br>14: } <br>15: th, td {<br>
16: valign: top;<br>17: text-align: center;<br>18: } <br>19: th {<br>20: background-color: #aed7ff<br> 21: }<br>22: caption {<br>23: border:1px solid #e5e5e5;<br>24: border-collapse:collapse;<br>25: font-family: arial; <br>
26: font-weight: bold;<br>27: font-size: 80%; <br> 28: text-align: left; <br>29: color: #333333; <br>30: }<br>31: </style><br>32: <title>GetFeatureInfo Response</title><br>33: <br>34: </head><br>35: <body><br>
36: <table><br>37: <caption>layer names: COLOMBIA</caption><br>38: <tbody><br>39: <th>Layer Name</th><br>40: <th>NAME</th><br>41: <th>ID</th><br> 42: <th>AREA</th> <br>
<br> <br><br>the file getfeatureinfo_footer.html is:<br><br><br>1: <!-- MapServer Template --> <br> 2: </tbody><br>3: </table><br>4: <br/><br>5: </body><br>6: </html><br><br><br><br>and my file getfeatureinfo_content2.html is:<br>
<br>1: <!-- MapServer Template --><br> 2: <tr><br>3: <td>Colombia</td><br>4: <td>[item name=nombre_dpt format=$value escape=none]</td><br>5: <td>[item name=id_espacia format=$value escape=none]</td><br>
6: <td>[item name=shape_area format=$value escape=none]</td><br>7: </tr><br><br>please could help me fix the error.<br><br>-- <br>Manuel Fernando Mancipe Huérfano<br>Ingeniería de Sistemas y Computación<br>
Universidad Pedagógica y Tecnológica de Colombia<br>