<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> </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> </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> </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> </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><valerio.vianello@yahoo.it></i></b>
ha scritto:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Da: valerio vianello
<valerio.vianello@yahoo.it><br>
Oggetto: Re: [mapserver-users] Show only one POI on the map<br>
A: "Tamas Szekeres" <szekerest@gmail.com><br>
Cc: "mapserver" <mapserver-users@lists.osgeo.org><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>
LAYER #show single poi <br>
NAME
floor_1_Show_Pois <br>
DATA POIs <br>
STATUS OFF <br>
TYPE
POINT<br>
CLASSITEM "country"<br>
FILTERITEM 'floor'<br>
FILTER 'f.1' <br>
LABELITEM "name" <br>
TOLERANCE 7<br>
<br>
CLASS <br>
NAME
'single_poi'<br>
EXPRESSION '%ccountry%' <br>
TEMPLATE '../templates/pois.html'<br>
STYLE <br>
COLOR 0
0 0<br>
SYMBOL
'../symbols/flag_blue.gif'<br>
END<br>
LABEL <br>
COLOR 0 0 0 <br>
TYPE BITMAP <br>
SIZE MEDIUM<br>
ANTIALIAS TRUE <br>
POSITION LC<br>
FORCE TRUE <br>
PARTIALS FALSE <br>
BUFFER 4 <br>
END # end of label<br>
END #CLASS <br>
END # layer Pois with label <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>
<a href="/cgi-bin/mapserv50?map=/var/www/map1.map&layers=floor_1
floor_1_Show_Pois&ccountry=[country]&imgext=[state]&imgxy=[center]">Show
on Section </a><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>
<input type="hidden" neme="ccountry"
value="[ccountry]"><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><szekerest@gmail.com></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 <szekerest@gmail.com><br>
Oggetto: Re: [mapserver-users] Show only one POI on the map<br>
A: valerio.vianello@yahoo.it<br>
Cc: "mapserver" <mapserver-users@lists.osgeo.org><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=""> </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=""> </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=""> </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=""> </span><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre><span style=""> </span><br style=""><br> <!--[if
!supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>2008/6/16 valerio vianello <valerio.vianello@yahoo.it>:<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> Hi Tamas,<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> I have a bit issue<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre><span style=""> </span><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre><span style=""> </span><o:p></o:p></pre><pre> ...<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br>
<!--[endif]--><o:p></o:p></pre><pre>> 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>><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> 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>> 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>> 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>> parameter<br style=""><br> <!--[if
!supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> (EXPRESSION '%ccountry%' ) in 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>> mapserver cgi haven't reference to it anymore.<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> any suggestion ?<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>><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>> Valerio.<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>><br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> ________________________________<br style=""><br> <!--[if !supportLineBreakNewLine]--><br style=""><br> <!--[endif]--><o:p></o:p></pre><pre>> 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>> opinione!<o:p></o:p></pre></td>
</tr>
</tbody></table>
<p class="MsoNormal"><o:p> </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> </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>