mapscript and logical expressions

Robert Chavez rchavez at perseus.tufts.edu
Fri Feb 4 06:38:38 PST 2000


Greetings,

I've just gotten around to trying the new logical expressions in classes
and I'm having trouble getting results.  Utimately I want to use logical
expresssions with ranges of numbers, but I tried these simple examples
with string, regex, and logical expressions just to test the various
expression options (using mapscript from the latest release 3.3.006):

<snip>
NAME Contours
  TYPE LINE
  STATUS OFF 		#mapscript handles status change 
  DATA contourlines1
  MAXSCALE 4000000
  CLASSITEM "Zv2"
  CLASS
    NAME "Contour lines"
    #EXPRESSION "914"  works, returns contours at this elevation
    #EXPRESSION /^914/ works, returns contours beginning with string 914
    #EXPRESSION ([Zv2] eq '914') doesn't work, returns nothing 
...
</snip>

I've tried a couple variations of the logical expression, but still no
luck.  Does anyone have any ideas?

Thanks,

Rob Chavez
Perseus Project
rchavez at perseus.tufts.edu 




More information about the MapServer-users mailing list