[Mapserver-users] mode=map & FILTER

Eduardo Islas eduardo_islas at hotmail.com
Thu Oct 2 23:46:53 EDT 2003


<html><div style='background-color:'><DIV></DIV>
<DIV>I have programmed my own application that works importing images to flash and VB applications using the CGI executable in mode=map. I want to use a label layer but filtering and showing only some labels. If I use FILTER &amp; FILTERITEM in the mapfile I get no labels at all (never). I read that in order to use FILTER I need to specify other mode in the CGI Script but I want to keep the mode=map to get the image directly. This is my script:</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER <BR>&nbsp; MAXSCALE 150<BR>&nbsp; NAME "texto"<BR>&nbsp; DATA texto<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; TYPE POINT<BR>&nbsp; LABELITEM "Label"<BR>&nbsp; LABELANGLEITEM "Angle"<BR>&nbsp; FILTERITEM "Hierarchy"<BR>&nbsp; FILTER "Hierarchy &gt;0"<BR>&nbsp; CLASS <BR>&nbsp;&nbsp;&nbsp; SIZE&nbsp;6</DIV>
<DIV>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<BR>&nbsp;&nbsp;&nbsp; FONT "TAHOMA"<BR>&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 255<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; POSITION UR<BR>&nbsp;&nbsp;&nbsp; MINSIZE 6<BR>&nbsp;&nbsp;&nbsp; FORCE true<BR>&nbsp; END<BR>&nbsp; END # end of class object</DIV>
<DIV>END # end of layer object</DIV></div><br clear=all><hr>MSN 8 with <a href="http://g.msn.com/8HMBEN/2740??PS=">e-mail virus protection service: </a> 2 months FREE*</html>



More information about the mapserver-users mailing list