<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><adams@terrestris.de></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Till Adams <adams@terrestris.de><br>Oggetto: Re: [mapserver-users] show only some point on the map<br>A: valerio.vianello@yahoo.it<br>Cc: "mapserver" <mapserver-users@lists.osgeo.org><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>(&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>> Dear Till,<br>><br>> Thanks for the suggestion.<br>><br>> But with variable substitution I am able to specify only one parameter <br>> like<br>><br>> EXPRESSION ([FNR]=%myid%) .<br>><br>> in this case on the map will be shown only one point (if myid is <br>> unique) or a group of points (if myid is shared among them)<br>><br>> in my case I want show the points with myid1,myid2,myid3...<br>><br>> how I should set this into the mapfile ?<br>><br>> regards<br>><br>> Valerio<br>> --- *Gio 28/8/08, Till Adams /<adams@terrestris.de>/* ha scritto:<br>><br>> Da: Till Adams <adams@terrestris.de><br>> Oggetto: Re: [mapserver-users] show only some point on the map<br>> A: valerio.vianello@yahoo.it<br>>
Cc: "mapserver" <mapserver-users@lists.osgeo.org><br>> Data: Giovedì 28 agosto 2008, 09:35<br>><br>> Dear Valerio,<br>><br>> I guess what you need is this:<br>> http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub<br>><br>> So add a variable substitution and insert it into your expression in<br>the <br>> CALL section of your layer.<br>><br>> Regards,<br>> Till<br>> > Dear list,<br>> ><br>> > I have this question:<br>> ><br>> > I have a map file in which there is a POINT layer that uses a <br>> > shapefile as datasource. Is possible with mapserver to do a<br>request to <br>> > show only some point on the map ?<br>> ><br>> > I know that i can show a group of points or only one point using <br>> > FILTER and CLASSITEM into the map file but my goal is a bit<br>different.
<br>> > In my case each poi has an ID into the shapefile, and I want make<br>a <br>> > request to serve the follow question:<br>> ><br>> > Show on map the poi with ID 3,6,8.<br>> ><br>> > any suggetsion ?<br>> ><br>> > P.S I'm using CGI interface maybe is this possible to do with<br>> mapscript ?<br>> ><br>> > thanks everybady<br>> ><br>> > Valerio<br>> ><br>> ><br>> > __________________________________________________<br>> > Do You Yahoo!?<br>> > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti<br>da <br>> ><br>> tanto spazio gratuito per i tuoi file e i messaggi<br>> > http://mail.yahoo.it<br>> ><br>------------------------------------------------------------------------<br>> ><br>> >
_______________________________________________<br>> > mapserver-users mailing list<br>> > mapserver-users@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>> > <br>><br>><br>> -- <br>> ----------------------------------------------------------<br>> terrestris GmbH & 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<br>> Adams<br>><br>>
<br>><br>><br>> __________________________________________________<br>> Do You Yahoo!?<br>> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da <br>> tanto spazio gratuito per i tuoi file e i messaggi<br>> http://mail.yahoo.it <br><br><br>-- <br>----------------------------------------------------------<br>terrestris GmbH & 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