[mapserver-users] IMG floating raster and class

Simone Frigerio simone.frigerio at univie.ac.at
Wed Oct 27 10:47:27 EDT 2010


  Hi folk,
I need to publish a floating Erdas Image img file. A stretched scale of 
red is required.
Starting  mapfile  could be:
....
LAYER
     NAME "test"
     TYPE RASTER
     DATA "rd_7790432.img"
     TEMPLATE "ttt"
     TRANSPARENCY 60
     METADATA
       "force_imagetype" "jpeg"
     END
....
I need a CLASSITEM setting, but how  can I manage a floating raster? 255 
classes or less  can be fixed:

Single class example:
CLASSITEM "VALUE"
     CLASS
       NAME "0 m - 900 m"
       EXPRESSION ([pixel] >= 0 AND [pixel] < 900)
       STYLE
         COLOR 0 20 0
       END
     END

How can I do automatically for all the pixel value?
Thanks.
Simone

-- 
-------------- next part --------------
Skipped content of type multipart/related


More information about the mapserver-users mailing list