Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#1015 closed enhancement (fixed)

legends for preclassified rasters

Reported by: bartvde@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.3
Severity: minor Keywords:
Cc:

Description

Mapserver needs a way to produce legends for preclassified rasters. In my
opinion there are 2 options for this:

1. the option of a KEYIMAGE at the layer level (or maybe it should be called
LEGENDIMAGE in that case), in which a user can associate a LAYER with an already
present legend image for the classification present in his raster data

2. the option of having a "processing" directive in which you can say, don't use
this classification for the data itself, but only for generating the legend.
E.g. something like: CLASSIFICATION LEGENDONLY

Thoughts?

Change History (2)

comment:1 by bartvde@…, 19 years ago

Resolution: fixed
Status: newclosed
E-mail from Frank 06-05-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,

comment:2 by fwarmerdam, 19 years ago

I would add that bug 985 relates to this issue as well.

Note: See TracTickets for help on using tickets.