[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] RASTER conditionally use default palette color based on pixel value
From:       Steve Lime <sdlime () gmail ! com>
Date:       2020-12-07 18:09:38
Message-ID: CAMrKZ9-X4ce_o6Af3g5m0Bd3f4__s0cR6XvLic=CemEcMpyL9w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Seems like you'd have to draw it twice - once with the using the
palette and a second time where you do whatever filtering and color
re-assignment you want.

On Sat, Dec 5, 2020 at 11:24 AM Scott <public@postholer.com> wrote:

>
> For instance:
>
> ...
>
>     CLASS
>        NAME "useDefaultColor"
>        EXPRESSION ([pixel] >= 100 && [pixel] < 200)
>        STYLE
>           #COLOR "#cc0000"   <-- this works (uncommented of course)
>           COLOR [red] [green] [blue]     <-- this does not
>        END
>     END
> ...
>
> Thank you!
>
>
> --
> www.postholer.com
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>

[Attachment #5 (text/html)]

<div dir="ltr">Seems like you&#39;d have to draw it twice - once with the using the \
palette  and a second time where you do whatever filtering and color re-assignment \
you want.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, \
Dec 5, 2020 at 11:24 AM Scott &lt;<a \
href="mailto:public@postholer.com">public@postholer.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> For instance:<br>
<br>
...<br>
<br>
      CLASS<br>
           NAME &quot;useDefaultColor&quot;<br>
           EXPRESSION ([pixel] &gt;= 100 &amp;&amp; [pixel] &lt; 200)<br>
           STYLE<br>
               #COLOR &quot;#cc0000&quot;     &lt;-- this works (uncommented of \
course)<br>  COLOR [red] [green] [blue]        &lt;-- this does not<br>
           END<br>
      END<br>
...<br>
<br>
Thank you!<br>
<br>
<br>
-- <br>
<a href="http://www.postholer.com" rel="noreferrer" \
target="_blank">www.postholer.com</a><br> \
_______________________________________________<br> mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" \
target="_blank">mapserver-users@lists.osgeo.org</a><br> <a \
href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br> \
</blockquote></div>



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic