Very cool.&nbsp; Looks like it is scheduled for inclusion in Release 5.4., and even better, the code is still functional.&nbsp; I&#39;m playing around with it now, and am easily applying a gradient to a single range of values, but have not yet figured out how to apply different color gradients to different ranges.<br>
<br>Will keep working on it.<br><br>Thanks for the lead.<br>--<br><br><br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 2:02 PM, Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Roger André wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is probably a question for Frank W.. &nbsp;I&#39;d like to re-write the raster classifier in Mapserver so that it can apply a linear color gradient using LUTs. &nbsp;I&#39;ve got code written already to do this with the Python API to GDAL, and would like to be able to do the same thing in Mapserver. &nbsp;Can someone point me to the right C code?<br>

</blockquote>
<br></div>
Roger,<br>
<br>
The core of the existing classification logic is msGetClass() in mapraster.c.<br>
Also if you search on &quot;classified&quot; in mapdrawgdal.c you will see most<br>
of the places it gets used.<br>
<br>
I believe that ramp based gradients should be written up as an RFC. &nbsp;There<br>
was a previous effort which I think was partially implemented. &nbsp;I would<br>
suggest you dig up information on it, before going too far.<br>
<br>
 &nbsp;<a href="http://mapserver.org/development/rfc/ms-rfc-6.html" target="_blank">http://mapserver.org/development/rfc/ms-rfc-6.html</a><br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up &nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush &nbsp; &nbsp;| Geospatial Programmer for Rent<br>
<br>
</font></blockquote></div><br>