<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Hi Valerio,<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Do you know how to do the same (runtime
variable substitution) using Mapscript instead of using the url??<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Thanks in advance.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p>&nbsp;</o:p></span></p>

<div class="MsoNormal" style="text-align: center;" align="center">

<hr tabindex="-1" align="center" size="2" width="100%">

</div>

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: Tahoma;">De:</span></b><span style="font-size: 10pt; font-family: Tahoma;">
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>En nombre de </b>valerio
vianello<br>
<b>Enviado el:</b> martes, 17 de junio de 2008 9:38<br>
<b>Para:</b> Tamas Szekeres<br>
<b>CC:</b> mapserver<br>
<b>Asunto:</b> Re: [mapserver-users] Show only one POI on the map</span><o:p></o:p></p>

<p class="MsoNormal"><o:p>&nbsp;</o:p></p>

<table class="MsoNormalTable" style="" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr style="">
  <td style="padding: 0cm;" valign="top">
  <p class="MsoNormal">Hi Tomas,<br>
  <br>
  I have found a first solution to my problem.<br>
  <br>
  I used the cookies to store the variable value end I update the cookie value
  only when the variable change. <br>
  <br>
  and then in a javascript I update the value of the post field before submit
  the page.<br>
  <br>
  I'm searching for other solution that don't use cookies...<br>
  <br>
  thanks<br>
  Valerio<br>
  <br>
  --- <b>Mar 17/6/08, valerio vianello <i>&lt;valerio.vianello@yahoo.it&gt;</i></b>
  ha scritto:<o:p></o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;">Da: valerio vianello
  &lt;valerio.vianello@yahoo.it&gt;<br>
  Oggetto: Re: [mapserver-users] Show only one POI on the map<br>
  A: "Tamas Szekeres" &lt;szekerest@gmail.com&gt;<br>
  Cc: "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>
  Data: Martedì 17 giugno 2008, 08:04<o:p></o:p></p>
  <table class="MsoNormalTable" style="" border="0" cellpadding="0" cellspacing="0">
   <tbody><tr style="">
    <td style="padding: 0cm;" valign="top">
    <p class="MsoNormal"><span style="font-family: inherit;">Hi Tomas,<br>
    <br>
    My demo is on my local machine for now...but I will show you part of the
    map file and template file.<br>
    <br>
    this is the layer in which i use the variable the map file is called
    "map1.map"<br>
    # Start of LAYER DEFINITIONS ---------------------------------------------<br>
    &nbsp; LAYER&nbsp; #show single poi <br>
    &nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    floor_1_Show_Pois <br>
    &nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POIs <br>
    &nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF <br>
    &nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    POINT<br>
    &nbsp;&nbsp;&nbsp; CLASSITEM "country"<br>
    &nbsp;&nbsp;&nbsp; FILTERITEM 'floor'<br>
    &nbsp;&nbsp;&nbsp; FILTER 'f.1'&nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; LABELITEM "name" <br>
    &nbsp;&nbsp;&nbsp; TOLERANCE 7<br>
    <br>
    &nbsp;&nbsp;&nbsp; CLASS <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    'single_poi'<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '%ccountry%' <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE '../templates/pois.html'<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE <br>
    &nbsp;&nbsp;&nbsp; &nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0
    0 0<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL
    '../symbols/flag_blue.gif'<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0 <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE BITMAP <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE MEDIUM<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION LC<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE TRUE <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS FALSE <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 4 <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END # end of label<br>
    &nbsp;&nbsp;&nbsp; END #CLASS&nbsp; <br>
    &nbsp; END #&nbsp; layer Pois with label&nbsp; <br>
    #end ---------------------------------------------<br>
    <br>
    when I click on same point in the map using mapserver query mode a new page
    is loaded where there is this link to reload the same map file to show only
    one pois:<br>
    <br>
    &lt;a href="/cgi-bin/mapserv50?map=/var/www/map1.map&amp;layers=floor_1
    floor_1_Show_Pois&amp;ccountry=[country]&amp;imgext=[state]&amp;imgxy=[center]"&gt;Show
    on Section &lt;/a&gt;<br>
    <br>
    the page is loaded correct but if I try for example to query to poi I have
    non response or if I zoom in or zoom out into the map the poi disappears.<br>
    <br>
    I tried to use the field in the template<br>
    &lt;input type="hidden" neme="ccountry"
    value="[ccountry]"&gt;<br>
    but the value of [ccountry is replaced only the first time with the correct
    value then its value become the string "[ccountry]"...<br>
    <br>
    any suggestions ?<br>
    <br>
    best regards<br>
    Valerio<br>
    <br>
    <br>
    <br>
    <br>
    --- <b>Lun 16/6/08, Tamas Szekeres <i>&lt;szekerest@gmail.com&gt;</i></b>
    ha scritto:<o:p></o:p></span></p>
    <p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-family: inherit;">Da: Tamas Szekeres &lt;szekerest@gmail.com&gt;<br>
    Oggetto: Re: [mapserver-users] Show only one POI on the map<br>
    A: valerio.vianello@yahoo.it<br>
    Cc: "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>
    Data: Lunedì 16 giugno 2008, 20:03<o:p></o:p></span></p>
    <pre>Valerio,<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>I don`t think if anything is preserved across the subsequent requests<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>in the cgi mapserver so you might have to apply the substitution on<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>each request.<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>However I`m not sure I could catch the problem exactly, do you have<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>   
 <!--[endif]--><o:p></o:p></pre><pre>mapfile/URL examples?<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>Best regards,<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>Tamas<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if
 !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>2008/6/16 valerio vianello &lt;valerio.vianello@yahoo.it&gt;:<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; Hi Tamas,<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt;<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; I have a bit issue<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre><span style="">&nbsp;&nbsp;&nbsp; </span><o:p></o:p></pre><pre>&nbsp;...<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>   
 <!--[endif]--><o:p></o:p></pre><pre>&gt; Do you know how lock the variable value until the next changing ?<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt;<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; Now I am able to show only one poi in the map but if I try to query it I<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; have no results as response. I have done a lot of test and I think the<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; problem is on variable value. after the page is loaded the value of<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; parameter<br style=""><br>    <!--[if
 !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; (EXPRESSION '%ccountry%' ) in&nbsp; the map file lose its past value<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>and so the<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; mapserver cgi haven't reference to it anymore.<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt;<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; any suggestion ?<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt;<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; Best regards<br style=""><br> 
   <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; Valerio.<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt;<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; ________________________________<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua<br style=""><br>    <!--[if !supportLineBreakNewLine]--><br style=""><br>    <!--[endif]--><o:p></o:p></pre><pre>&gt; opinione!<o:p></o:p></pre></td>
   </tr>
  </tbody></table>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <div class="MsoNormal" style="text-align: center;" align="center">
  <hr align="center" size="1" width="100%">
  </div>
  <p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">Scopri il
  <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F" target="_blank">Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e la
  tua opinione!</span><o:p></o:p></p>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"><o:p>&nbsp;</o:p></p>

<div class="MsoNormal" style="text-align: center;" align="center">

<hr align="center" size="1" width="100%">

</div>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F">Blog
di Yahoo! Mail</a>: trucchi, novità, consigli... e la tua opinione!</span><o:p></o:p></p>

<p><span style="font-size: 10pt;">No virus found in this incoming message.<br>
Checked by AVG.<br>
Version: 7.5.524 / Virus Database: 270.3.0/1505 - Release Date: 16/06/2008 7:20</span><o:p></o:p></p>

</div></div><br>



      <hr size=1><br><font face="Verdana" size="-2">Enviado desde <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html">Correo Yahoo!</a><br>La bandeja de entrada más inteligente.<br></font></body></html>