Online raster processing?

Frank Warmerdam warmerdam at POBOX.COM
Mon Feb 13 08:15:32 EST 2006


Teemu Makela wrote:
> OK. Still trying to solve the problem...
> 
> Is it possible to make this kind of reclassification
> PROCESSING "BANDS=1"
> CLASS
>    EXPRESSION ([pixel] > 250)
>       STYLE
>          COLOR 250 [green] [blue]
>       END
> END?
> 
> So what I'm trying to do is reserve certain colors from image for another
> purposes and thus I need to make sure that image does not contain those
> colors. Above I am trying to make sure that in the image there is no pixels
> that have red (band 1) values larger than 250. The expression itself works
> but how to assign color without changing green and blue values of a pixel?
> 
> If this is not possible what would be another solution?

Teemu,

The above is not possible.  It is not possible to substitute into the
values of the COLOR keyword.

I can't think of any way of accomplishing what you want.

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