[mapserver-users] Re: gradient display of raster DEM data (John Callahan)

Puneet Kishor punk.kish at gmail.com
Mon Nov 21 06:35:55 PST 2011


On Nov 21, 2011, at 8:09 AM, Mark Volz wrote:

> John,
> 
> I was able to get datarange and classrange to work.  However I found a couple issues:
> 
> 1) I had to include an expression for the raster range.  - This may have been fixed in newer versions of MS.


At least with ms 6.0.1 I didn't have to use any expression directive. Just colorrange and datarange did the trick.


> 2) I was getting unwanted black areas on my map.  - I was using PC256  (to make the image smaller), I had to revert to RGB, which has more colors.  Mapserver did not report an error when I was using PC256.
> 
> 
> 
> CLASS
> 	EXPRESSION ([pixel] >= 1030 AND [pixel] < 1133)
> 	STYLE
> 		COLORRANGE 176 240 232 255 255 179
> 		DATARANGE 1030 1133
> 	END
> END #class
> 
> 
> 
> Mark Volz
> GIS Specialist




More information about the MapServer-users mailing list