[mapserver-users] Recoloring a raster...

Lars Schylberg lars.schylberg at blixtmail.se
Thu Sep 16 10:07:37 PDT 2021


Hi Steve,

I have one solution with gdal that I showed in some context that I can't 
remember now.  It changes palette images. It does a simple reclass of 
the color values with gdal_calc and some glue with awk and sed.

https://gist.github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705

Have fun / Lars Schylberg

Den 2021-09-16 kl. 18:46, skrev Steve Lime:
> Hi all: I think this is possible. What's the easiest/best way to 
> recolor a raster image, so for example, turning all pixels of 255 0 0 
> to 0 0 255? There are only 6 colors in the input image I need to deal 
> with.
>
> --Steve
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210916/ab8c00e6/attachment.htm>


More information about the MapServer-users mailing list