<br><font size=2 face="sans-serif">What happen when you click on the map?
Do you get an error?</font>
<br><font size=2 face="sans-serif">What's in the mapserver log?</font>
<br><font size=2 face="sans-serif"><br>
</font>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Kiks &lt;enrico.oemi@gmail.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">29/07/2010 09:35 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Polluriel potentiel] &nbsp;[mapserver-users]
what is the way to get feature info in mapserver?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2><br>
Hi to all,<br>
I'm trying to obtain information by clicking on the map and display it
on a<br>
popup window with Openlayers.<br>
First of all, I added to my mapfile the template reference that is this:<br>
<br>
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;tr bgcolor=#FFFFD0&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;td&gt;[COD]&lt;/td&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;td&gt;[FOG]&lt;/td&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;td&gt;[NUM]&lt;/td&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;/tr&gt; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt; <br>
&lt;/html&gt; <br>
<br>
(where COD, FOG and NUM are the name of the fields on the same table where<br>
the spatial information of my layer are)<br>
<br>
then I added to the LAYER section this:<br>
 &nbsp; &nbsp; ...<br>
 &nbsp; &nbsp; METADATA <br>
 &nbsp; &nbsp; &nbsp; &quot;wms_title&quot; &quot;Parcels&quot; <br>
 &nbsp; &nbsp; &nbsp; &quot;wms_info_format&quot; &nbsp; &nbsp; &nbsp;
&quot;text/plain&quot;<br>
 &nbsp; &nbsp; END <br>
 &nbsp; &nbsp; TEMPLATE &quot;..\template\Parcel.html&quot;<br>
 &nbsp; &nbsp; ...<br>
<br>
then I worked on OpenLayer to make the WMS getFeatureInfo call.<br>
<br>
I'm sure I'm forgiving or misunderstanding something important, but I can't<br>
find what..<br>
Has anybody suggestions or tutorial to do this working?<br>
<br>
thanks again,<br>
Kiks<br>
<br>
-- <br>
View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html<br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>