Raster Legend Entries without Classification

Frank Warmerdam fwarmerdam at GMAIL.COM
Fri May 6 13:07:58 EDT 2005


Folks,

There has been a desire by raster users to be able to have an entry
appear in legends for raster layers without having to force the raster
layer to be rendered using classification.  In the past having a class
on the raster would force the raster layer to be rendered using
classification rules, instead of it's inherent colors - but a class
was the only convenient way to have a layer appear in the legend. 

After discussion with Steve I have made a change in the GDAL 
based raster rendering to only use classification rules for rendering
if at least one class has a non-NULL expression.   So, it should be
no problem now to use a dummy class with a KEYIMAGE or other
mechanism to get a legend entry for a raster layer without classifying
it. 

This should become widely available in 4.6.0 beta2. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list