[Mapserver-users] selection hilite_ basic question

andre shue andiehumpy at hotmail.com
Thu May 27 07:58:05 PDT 2004


<html><div style='background-color:'><DIV class=RTE>
<DIV>Hi Steve and List, </DIV>
<DIV>I am pretty new and unexperienced to the MS, it might be a stupid quest... anyway, I got the demo running, changed some layers, but when selecting a polygon via itemquery I am not sure. I can do an attribut search and also get  results via template [area] [name]  yet no map. I know I can get a map via querymap, but could not go any further on this.   </DIV>
<DIV>I dont know how to build up an template with a map,  including the selected polygon marked and in the centre of the map.... </DIV>
<DIV> As the where any examples I would be happy.</DIV>
<DIV>As you have any hints, please remember, I am a Geographer and low level programmer.</DIV>
<DIV>Thanks a lot.</DIV>
<DIV> </DIV>
<DIV><BR>Andreas </DIV>
<DIV> </DIV>
<DIV>PS. Another question is, is there a list of the complete template and map commands, I got the feeling there are some more commands, than I could find via the Mapserver homepage.</DIV>
<DIV> </DIV>
<DIV>Thanks anyway to the great developers of mapserver </DIV>
<DIV> </DIV>
<DIV>---------------------------------------------------------------------------------------------------------</DIV>
<DIV>Here is the template and the map.</DIV>
<DIV> </DIV>
<DIV><BR><!-- START OF MAPSERVER FORM --><BR><form name="mapserv" method="GET" action="mapserv.exe"></DIV>
<DIV> </DIV>
<DIV><table width="400" border="0" align="center"><BR>  <tr> <BR>    <td><BR> <p align="center"><font face="Arial Narrow">&nbsp; </font> <BR>    <font face="Arial Narrow" size="6">Muldentalkreis MS <BR>    Test</font></p><BR> <p>&nbsp;</p><BR> <table width="466" border="1"><BR>   <tr> <BR>     <td width="211"></DIV>
<DIV> </DIV>
<DIV><!-- SPECIFY MAP MODE --><BR>       Attribut eingeben<b> (Achtung!!! Mapmode = Attributabfrage)</b><div align="center"><BR><input type="TEXT"  size= "30" name= "qstring" value=""><input type="submit" value="ENTER"></div><BR>       <div align="center">&nbsp;</div><BR>       <div align="center">&nbsp;</div><BR>       <div align="center">Map Mode:<br><BR>  <select name="mode"><BR>    <option value="browse" [browse_select]>Browse</option><BR>    <option value="query" [query_select]>Abfrage</option><BR>     <option value="itemquery" [itemquery_select]>Attributabfrage</option> <BR> <BR>  </select><BR>       </div><BR>     </td><BR>     <td width="77"><BR><!-- FORM SUBMIT BUTTON --><BR>       <div align="center"><BR>  <input type="submit" name="submit" value="Refresh"><BR>       </div><BR>     </td><BR>     <td width="156"></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><!-- ZOOM/PAN CONTROLS --><BR>       <div align="center">Map Control: <br><BR>                <select name="zoom"><BR>                  <option value="4" [zoom_4_select]>Zoom In 4x</option><BR>                  <option value="3" [zoom_3_select]>Zoom In 3x</option><BR>                  <option value="2" [zoom_2_select]>Zoom In 2x</option><BR>                  <option value="1" [zoom_1_select]>Recenter</option><BR>                  <option value="-2" [zoom_-2_select]>Zoom Out 2x</option><BR>                  <option value="-3" [zoom_-3_select]>Zoom Out 3x</option><BR>                  <option value="-4" [zoom_-4_select]>Zoom Out 4x</option><BR>                </select><BR>              </div><BR>     </td><BR>   </tr><BR>   <tr><BR>   <BR>   <BR><!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --><BR>     <td colspan="3" align="center" valign="top" width="390"><BR>       <input type="image" name="img" src="[img]" width="[mapwid
th]" height="[mapheight]"><BR>     </td><BR>   </tr><BR> </table><BR>   </td><BR>  </tr><BR></table></DIV>
<DIV> </DIV>
<DIV><!-- Attributabfrage --><BR>&nbsp;</DIV>
<DIV> </DIV>
<DIV><BR><!-- HIDDEN MAPSERVER CGI VARIABLES --><BR><input type="hidden" name="imgxy" value="[center]"><BR><input type="hidden" name="imgext" value="[mapext]"><BR><input type="hidden" name="map" value="[map]"><BR><input type="hidden" name="root" value="[root]"><BR><input type="hidden" name="savequery" value="true"><BR><input type="hidden" name="qlayer" value="mtl"><BR><input type="hidden" name="qitem" value="GEMEINDE"</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></form><BR></body><BR></html></DIV>
<DIV> </DIV>
<DIV> ----------------------------------------------------------------------------------------------------------------</DIV>
<DIV>MAP<BR>  IMAGETYPE PNG<BR>  EXTENT 4528581.187561 5713247.167603 4573608.666901 5651344.554810<BR>  SIZE 750 750<BR>  SHAPEPATH "data"<BR>  IMAGECOLOR 255 255 255</DIV>
<DIV> </DIV>
<DIV><BR>QUERYMAP<BR>  SIZE 600 600<BR>  STATUS OFF <BR>  STYLE HILITE<BR>  COLOR 23 35 24<BR>END</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>WEB<BR>  TEMPLATE  'test.html'<BR>  IMAGEPATH 'tmp/'<BR>  IMAGEURL  'tmp/'<BR>END</DIV>
<DIV> </DIV>
<DIV><BR> LAYER<BR>  NAME mtl<BR>  TYPE POLYGON<BR>  DATA mtl<BR>  PROJECTION<BR>    proj=tmerc <BR>    lat_0=0.000000000 <BR>    lon_0=12.000000000 <BR>    k=1.000000 <BR>    x_0=4500000.000 <BR>    y_0=0.000 <BR>    ellps=bessel <BR>    units=m <BR>    no_defs <BR>END        #line114<BR>  STATUS DEFAULT<BR>  CLASSITEM 'GEMEINDE'<BR>  LABELITEM 'GEMEINDE'<BR>  #LABELMINSCALE 80000 <BR>  CLASS<BR>    NAME "GEMEINDE"<BR>    EXPRESSION  /./<BR>    OUTLINECOLOR 0 0 0<BR>    COLOR 255 255 217 <BR>    LABEL<BR>END<BR>  TEMPLATE "mtl.html"<BR>  END<BR>  HEADER "mtl_header.html"<BR>  FOOTER "mtl_footer.html"</DIV>
<DIV> </DIV>
<DIV><BR>END<BR></DIV>
<DIV>---------------------------------------------------------------------------------------------------</DIV>
<P><BR><BR></P></DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMBEN/2752??PS=47575">ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</html>



More information about the MapServer-users mailing list