[mapserver-users] Intervalls for EXPRESSION in CLASS object

CoFIS Web coffee at uni-bonn.de
Thu Jul 30 05:45:56 EDT 2009


Hello,
I have a shape file with isohyets and want to draw only certain values 
at different map scales. The larger the scale, the more detail I want.

Currently I use

CLASS
  EXPRESSION ( ([value] = 250) OR ([value] = 500) OR ([value] = 750)...)
  MAXSCALEDENOM 1000000
  MINSCALEDENOM 500000	
..
END

CLASS
  EXPRESSION ( ([value] = 100) OR ([value] = 200) OR ([value] = 300) ...)
  MAXSCALEDENOM 500000
  MINSCALEDENOM 250000	
..
END

which becomes a pretty long list in large scale class definitions, since 
I got precipitation values up to 3000mm intervals.

Can I do something like

EXPRESSION ( ([value] = 'all values in 100 intervals')

Thanks,
Nils

-- 
Center for Development Research
Department of Ecology and Resource Management

Walter-Flex-Strasse 3
53113 Bonn (Germany)

Tel.:   +49 (0) 228 - 73-1793
FAX:    +49 (0) 228 - 73-1889

E-Mail: coffee at uni-bonn.de

Web:    http://www.cofis.info/atlas
         http://www.coffee.uni-bonn.de


More information about the mapserver-users mailing list