<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Till,<br><br>maybe I forgot to tell you that my data source is a shapefile and not a database.<br><br>so if I have good understood the only solution that I have to try is to use an SLD file.<br><br>Regards to group the point in such a way in not possible in this case becouse I have a certain number of points and in each request the user should be able to select the point to show.<br><br>br,<br>Valerio.<br><br>--- <b>Gio 28/8/08, Till Adams <i>&lt;adams@terrestris.de&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Till Adams &lt;adams@terrestris.de&gt;<br>Oggetto: Re: [mapserver-users] show only some point on the map<br>A: valerio.vianello@yahoo.it<br>Cc: "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>Data: Giovedì 28 agosto 2008, 10:41<br><br><pre>valerio,<br><br>OK, I
 think you may use more than one subvar, but if there are too many, ...<br><br>And there is no way to group the points together in any attribute, which <br>are shown together?<br><br>One solution might be to generate a temporary view in a database (if the <br>points come out of such) and then<br>send the name of the view via subvar to your file.<br><br>Even better, generate a string out of your selected gid's like<br><br>1,3,45,567,789,790<br><br>Send this  Stringvia subvar to your mapfile and use a "WHERE gid IN ('<br><br>YOURSTRING ') in your SQL in the mapfile...<br><br><br>Another possible solution might be...hack around and not really fine, <br>but write a temporary SLD file - which only works when using mapserver <br>as WMS server.<br>You can let a script write a temporary-SLD file, where your filter is <br>set to your ids and apply this to your getmap request <br>(&amp;SLD=path/tp/your_name.xml).<br><br>To ensure, that only user A uses his
 filtered SLD, we normally used the <br>PHP session ID or sth similar for naming the sld.<br><br>Many ideas, find the best way for you...<br>Regards, Till<br><br>&gt; Dear Till,<br>&gt;<br>&gt; Thanks for the suggestion.<br>&gt;<br>&gt; But with variable substitution I am able to specify only one parameter <br>&gt; like<br>&gt;<br>&gt; EXPRESSION ([FNR]=%myid%) .<br>&gt;<br>&gt; in this case on the map will be shown only one point (if myid is <br>&gt; unique) or a group of points (if myid is shared among them)<br>&gt;<br>&gt; in my case I want show the points with myid1,myid2,myid3...<br>&gt;<br>&gt; how I should set this into the mapfile ?<br>&gt;<br>&gt; regards<br>&gt;<br>&gt; Valerio<br>&gt; --- *Gio 28/8/08, Till Adams /&lt;adams@terrestris.de&gt;/* ha scritto:<br>&gt;<br>&gt;     Da: Till Adams &lt;adams@terrestris.de&gt;<br>&gt;     Oggetto: Re: [mapserver-users] show only some point on the map<br>&gt;     A: valerio.vianello@yahoo.it<br>&gt;    
 Cc: "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>&gt;     Data: Giovedì 28 agosto 2008, 09:35<br>&gt;<br>&gt;     Dear Valerio,<br>&gt;<br>&gt;     I guess what you need is this:<br>&gt;     http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub<br>&gt;<br>&gt;     So add a variable substitution and insert it into your expression in<br>the <br>&gt;     CALL section of your layer.<br>&gt;<br>&gt;     Regards,<br>&gt;      Till<br>&gt;     &gt; Dear list,<br>&gt;     &gt;<br>&gt;     &gt; I have this question:<br>&gt;     &gt;<br>&gt;     &gt; I have a map file in which there is a POINT layer that uses a <br>&gt;     &gt; shapefile as datasource. Is possible with mapserver to do a<br>request to <br>&gt;     &gt; show only some point on the map ?<br>&gt;     &gt;<br>&gt;     &gt; I know that i can show a group of points or only one point using <br>&gt;     &gt; FILTER and CLASSITEM into the map file but my goal is a bit<br>different.
 <br>&gt;     &gt; In my case each poi has an ID into the shapefile, and I want make<br>a <br>&gt;     &gt; request to serve  the follow question:<br>&gt;     &gt;<br>&gt;     &gt; Show on map the poi with ID 3,6,8.<br>&gt;     &gt;<br>&gt;     &gt; any suggetsion ?<br>&gt;     &gt;<br>&gt;     &gt; P.S I'm using CGI interface maybe is this possible to do with<br>&gt;     mapscript ?<br>&gt;     &gt;<br>&gt;     &gt; thanks everybady<br>&gt;     &gt;<br>&gt;     &gt; Valerio<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;     &gt; __________________________________________________<br>&gt;     &gt; Do You Yahoo!?<br>&gt;     &gt; Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti<br>da <br>&gt;     &gt;<br>&gt;      tanto spazio gratuito per i tuoi file e i messaggi<br>&gt;     &gt; http://mail.yahoo.it<br>&gt;     &gt;<br>------------------------------------------------------------------------<br>&gt;     &gt;<br>&gt;     &gt;
 _______________________________________________<br>&gt;     &gt; mapserver-users mailing list<br>&gt;     &gt; mapserver-users@lists.osgeo.org<br>&gt;     &gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt;     &gt;   <br>&gt;<br>&gt;<br>&gt;     -- <br>&gt;     ----------------------------------------------------------<br>&gt;     terrestris GmbH &amp; Co. KG<br>&gt;     Irmintrudisstrasse 17<br>&gt;     53111 Bonn<br>&gt;     Germany<br>&gt;<br>&gt;     Till Adams<br>&gt;     Geschäftsführung<br>&gt;<br>&gt;     Tel: +49 (0)228 / 962 899-52<br>&gt;     Fax: +49 (0)228 / 962 899-57<br>&gt;     adams@terrestris.de http://www.terrestris.de<br>&gt;     Amtsgericht Bonn, HRA 6835<br>&gt;     ---------------------------------------------------------<br>&gt;<br>&gt;     Komplementärin:<br>&gt;<br>&gt;     terrestris Verwaltungs GmbH<br>&gt;<br>&gt;     vertreten durch:<br>&gt;     Hinrich Paulsen, Till<br>&gt;      Adams<br>&gt;<br>&gt;  
             <br>&gt;<br>&gt;<br>&gt; __________________________________________________<br>&gt; Do You Yahoo!?<br>&gt; Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da <br>&gt; tanto spazio gratuito per i tuoi file e i messaggi<br>&gt; http://mail.yahoo.it <br><br><br>-- <br>----------------------------------------------------------<br>terrestris GmbH &amp; Co. KG<br>Irmintrudisstrasse 17<br>53111 Bonn<br>Germany<br><br>Till Adams<br>Geschäftsführung<br><br>Tel: +49 (0)228 / 962 899-52<br>Fax: +49 (0)228 / 962 899-57<br>adams@terrestris.de http://www.terrestris.de<br>Amtsgericht Bonn, HRA 6835<br>---------------------------------------------------------<br><br>Komplementärin:<br><br>terrestris Verwaltungs GmbH<br><br>vertreten durch:<br>Hinrich Paulsen, Till Adams<br><br></pre></blockquote></td></tr></table><br>__________________________________________________<br>Do You Yahoo!?<br>Poco spazio e tanto spam? Yahoo! Mail ti protegge
 dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi <br>http://mail.yahoo.it