problem with class_expression

Tomasz Wlaz?owski wlazlowski at IGPIK.WAW.PL
Fri Aug 27 04:35:54 PDT 2004


Hello!

I am pretty new mapserver user and  I don’t know any body from this
mailing list.
I hope that some will help me.
I have problem with class expression.
Till now I know how to choose one attribute from attribute table and
"highlight" it:
I use following syntax :

<input type="hidden" name="layer" value="Qroads">
<input type="hidden" name="map_Qroads_class_expression value = "[street]">
 <SELECT value="1" NAME="map_Qroads_class_expression"
style="font-size:12;color:blue;" onchange="javascript:Doit();">
<OPTION   value="none"> select street </OPTION>
<OPTION   value="none">---------------- </OPTION>
<OPTION   value="abc">street_A</OPTION>
<OPTION   value="cde">street_B</OPTION>
<OPTION   value="efg">street_C</OPTION>

... and in my map file I have defined layer:

LAYER
    NAME Qroads
    DATA qroads
    STATUS OFF
    TYPE LINE
LABELITEM "STREET"
CLASSITEM "STREET"
   CLASS
         EXPRESSION ([STREET])
         SYMBOL "triangle"
         SIZE 8
         COLOR 255 0 0
              LABEL
          COLOR 255 50 0
           TYPE BITMAP
          FONT arial-bold
          SIZE GIANT
            ANGLE AUTO
          ANTIALIAS TRUE
          POSITION UC
          PARTIALS FALSE
          MINDISTANCE 100
          BUFFER 4
               END
       END
END

I want to zoom to  the selected object from my 'select menu'.
Please, does anybody could help me?

Tomasz Wlazlowski
Insitute of Spatial Management and Housing



wlazlowski at igpik.waw.pl



More information about the MapServer-users mailing list