I'm serving a NDVI coverage via Mapserver. So, one band, float32 values, [-1.0, 1.0]. I want to display the NDVI in greyscale, and generate a legend. I've tried 2 things:
- Create two dummy classes, just for testing:
So, my legend looks like this
And the image, obviously, is red and blue: http://dl.dropbox.com/u/6599273/capturas/ndvi_en_gvsig.png
But I'd like to see the image in greyscale... The I've tried the next thing
- Pre-classify values with PROCESSING "SCALE=-1.0, 1.0". I don't know what Mapserver does internally with this processing order, but I can see the image in greyscale: http://dl.dropbox.com/u/6599273/capturas/ndvi_gris_en_gvsig.png
The problem is now I can't see any legend, because I've not created any class. I'd like to see all the colors of the grayscale image in my legend.
How could I do it?
Many thanks in advance