[Mapserver-users] Re: [Bug 270] 24-bit image processing crash

Frank Warmerdam warmerdam at pobox.com
Fri Feb 7 14:06:21 PST 2003


Steve Lime wrote:
> Hmmm... How bout something like this:
> 
>   - RGB rasters totally ignore classes
>   - however, for legends we look at a way to automatically generate a sample *chip*
>     with the name coming from the class definition
> 
> I guess I'm saying. Still define a CLASS, but just for legend purposes and not for
> process purposes. Generating the sample to put in the key would require new code.
> Another idea would be for the user to submit a *chip* via a new parameter called
> something like SAMPLE. The sample would simply be an image used in place of a dynamically
> generated key image. We could even define an internal symbol for rasters as a default.


Steve,

I like the idea of being able to provide a sample swatch via the map file
to place in the legend, but I wonder if the same option should be available
for pseudocolored images we don't want to put through a real classification?

In this, perhaps the raster code would look for the SAMPLE keyword and not
do any classification if it is found.

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