<DIV>Hi to all,</DIV>
<DIV> </DIV>
<DIV>I'm a newbie, I'm using php 4.31 + mapserver dll (3.6.6 - compiled with postgis support) + Postgres (in wich I have all the maps).</DIV>
<DIV>I did and understood the examples about how to load a map in the documentation section of the mapserver's site but now I would like to do a basic query.</DIV>
<DIV>The map is stored in a table which have this fields: gid | layer_type | the_geom.</DIV>
<DIV> </DIV>
<DIV>I need by clicking a point of the map to retrive the layer_type of that point.</DIV>
<DIV> </DIV>
<DIV>How can I do that by using mapscript?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks in advance</DIV>
<DIV> </DIV>
<DIV>Luca Colombo</DIV>
<DIV> </DIV>
<DIV>Ps1: I also need to do the opposite thing: by the layer_type/gid to display on the map the results.</DIV>
<DIV>Ps2: I paste a pi
e
ce of my mapfile (I used it with the cgi mapserver and it works):</DIV>
<DIV> </DIV>
<DIV>QUERYMAP<BR> SIZE 200 160<BR> STYLE HILITE<BR> COLOR 0 0 255<BR>END</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME "layer_confine"<BR> CONNECTIONTYPE postgis<BR> CONNECTION "user=carlo dbname=catasto host=scorpio.ing.unico.it port=5432"<BR> DATA "the_geom from mappa"<BR> CLASSITEM 'LAYER'<BR> STATUS DEFAULT<BR> TYPE Line<BR> FILTER "mappa.layer_typer='CONFINE'"</DIV>
<DIV> </DIV>
<DIV> CLASS<BR> COLOR 213 231 239<BR> END</DIV>
<DIV> </DIV>
<DIV> TEMPLATE t_query-f.html<BR> HEADER h_query-f.html<BR> FOOTER f_query-f.html</DIV>
<DIV> </DIV>
<DIV>END</DIV>
<p><font face=Verdana,Arial size=2>----<br>
Email.it, the professional e-mail, gratis per te: <a href="http://www.email.it/cgi-bin/start?sid=3"
target="_blank" >clicca qui</a> <br>
<br>
Sponsor:<br>
Alto rendimento, massima libertà. È Conto Arancio di ING Direct.<br>
<a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=659&d=29-5" target="_blank" >Clicca qui</a> </font><br>