Hi Julien,
   the data are bubbling thru classes until the expression is true, so you may 
use simply the syntax:

CLASS
                NAME "0 - 200"
                EXPRESSION ([ELEVAC]< 200)
...
END
CLASS
                NAME "201 - 300"
                EXPRESSION ([ELEVAC]< 300)
 ...

etc

If the data are preclassified to unique values (eg 2,3,4,5), you will get 
better performance

CLASSITEM "ELEVAC"

CLASS
  NAME "0-200"
  EXPRESSION "2"
...

For the best performance use the most frequent dataset values in the first 
class.

Stepan Kafka

Hi,
i'm working with fgs-mapserver and php-mapscript.
i was wondering if i'd rather develop the php code using the php class or on 
the contrary develop the map file.
For example, i want to display a layer with level line. I could build the class 
with php or i could write several class in my map file, someting like:
        CLASS
                NAME "201-300"
                EXPRESSION (([ELEVAC]> 200) and ([ELEVAC]< 301))
          STYLE
                        SIZE 1
                        COLOR 100 40 0
          END
        END

what's the best way?

thx for your advice.

julien

Reply via email to