<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hola David,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>No he conseguido aún que me funcionen las
plantillas, pero lo que sí he conseguido es que me devuelva todos los atributos
en texto plano. Lo he conseguido añadiendo lo siguiente: "wms_include_items"
"all" en el objeto LAYER. Y entonces me devuelve lo correcto (aunque
de momento sin formato html):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>GetFeatureInfo results:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Layer 'ENP'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Feature 6: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> ENP_NOMBRE = 'Carrascoy y El Valle'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> ENP_CAT = 'Parque Regional'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> HECTAREAS = '11873.77004420'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> ENP_FECHA = '20050610'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> LINK =
'http://www.carm.es/medioambiente/articulos.html?id=2469'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> SHAPE_AREA = '1.18737700435e+008'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> SHAPE_LEN = '1.31916887359e+005'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>En fin, voy a seguir probando.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Un saludo.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'>Hi David,<o:p></o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'><o:p> </o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'>Template
still does not work, but i get full results with plain text. I get it adding
this tag "wms_include_items" "all" in the LAYER object.
And then it returns correct results (though without html format).<o:p></o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'><o:p> </o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'>Well, I
continue testing.<o:p></o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'><o:p> </o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-style:italic'>Bye.<o:p></o:p></span></font></i></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div id=idSignature3666>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>---------------------------------------------</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><strong><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Alexandre Rodier</span></font></b></strong><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><em><i><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Asistencia Técnica del
SIGA</span></font></i></em><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Servicio de Información e Integración
Ambiental<br>
Dirección General de Patrimonio Natural y Biodiversidad<br>
Consejería de Agricultura y Agua.<br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy'>c/ Arquitecto Emilio Piñero, 1 Entresuelo C</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>30.007 Murcia</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Tel. 968246272</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Correo-e: <a
href="mailto:alexandre.rodier@carm.es" title="mailto:alexandre.rodier@carm.es">alexandre.rodier@carm.es</a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a href="http://www.carm.es/medioambiente"
title="http://www.carm.es/medioambiente">http://www.carm.es/medioambiente</a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>---------------------------------------------</span></font><o:p></o:p></p>
</div>
</div>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> David Martinez
Morata [mailto:damarmo@gmail.com] <br>
<b><span style='font-weight:bold'>Enviado el:</span></b> viernes, 09 de enero
de 2009 10:23<br>
<b><span style='font-weight:bold'>Para:</span></b> RODIER BATISSE, ALEXANDRE<br>
<b><span style='font-weight:bold'>Asunto:</span></b> Re: [mapserver-users]
Problem with template</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>No se si esto te ayudara,
pero elimina ciertos elementos html de tus ficheros plantilla imaginate que los
tres forman un solo fichero html, es decir que no cierres el contenido html
(/html) en la cabecera ni en el cuerpo, hazlo solo en el pie, no pongas
cabeceras a los ficheros cuerpo y pie...<br>
<br>
Suerte<br>
<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2009/1/9 RODIER BATISSE, ALEXANDRE <<a
href="mailto:alexandre.rodier@carm.es">alexandre.rodier@carm.es</a>><o:p></o:p></span></font></p>
<div link=blue vlink=purple>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi
everyone,</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Before
to explain my problem I wish a happy new year.</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Well,
my problem is relationed with a mail than i sent past dicember about problem
with template.</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
define a map file with template definition in layer object (I attach it). I
define also MIME format for query in the web object like
"wms_feature_info_mime_type" "text/html,text/plain". And
finaly I define the templates files (I also attach them). The mapfile define a
vector layer from shape file with few atrributes.</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>The
problem appears when I perform a GetFeatureinfo request:</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>A
GetFeatureInfo request in my web browser like this "<a
href="http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox="
target="_blank">http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox=</a></span></font>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>610822.81,4137430.54,707593.47,4266594&WIDTH=800&HEIGHT=500&INFO_FORMAT=text/html"
returns this result:</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>GetFeatureInfo results:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Layer 'ENP'<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Feature 6:<o:p></o:p></span></font></pre>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>As
you can see, the query doesn't return attribute from shape file.</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>When
X,Y coordinates doesn't match with any feature, the request returns:</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>GetFeatureInfo results:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> Search returned no results.<o:p></o:p></span></font></pre>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Someone
knows the source of the problem.</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks.</span></font><o:p></o:p></p>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>---------------------------------------------</span></font><o:p></o:p></p>
<div>
<p><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-weight:bold'>Alexandre Rodier</span></font></b><o:p></o:p></p>
</div>
<div>
<p><i><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-style:italic'>Asistencia Técnica del SIGA</span></font></i><o:p></o:p></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Servicio
de Información e Integración Ambiental<br>
Dirección General de Patrimonio Natural y Biodiversidad<br>
Consejería de Agricultura y Agua.<br>
</span></font><font size=1 face=Arial><span style='font-size:7.5pt;font-family:
Arial'>c/ Arquitecto Emilio Piñero, 1 Entresuelo C</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>30.007
Murcia</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>Tel.
968246272</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Correo-e:
<a href="mailto:alexandre.rodier@carm.es" target="_blank"
title="mailto:alexandre.rodier@carm.es"><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'>alexandre.rodier@carm.es</span></font></a></span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><a
href="http://www.carm.es/medioambiente" target="_blank"
title="http://www.carm.es/medioambiente"><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'>http://www.carm.es/medioambiente</span></font></a></span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>---------------------------------------------</span></font><o:p></o:p></p>
</div>
</div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Martinez Morata David<br>
Thinking GIS<o:p></o:p></span></font></p>
</div>
</body>
</html>