Very cool.  Looks like it is scheduled for inclusion in Release 5.4., and
even better, the code is still functional.  I'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.

Will keep working on it.

Thanks for the lead.
--



On Tue, Jan 13, 2009 at 2:02 PM, Frank Warmerdam <[email protected]>wrote:

> Roger André wrote:
>
>> This is probably a question for Frank W..  I'd like to re-write the raster
>> classifier in Mapserver so that it can apply a linear color gradient using
>> LUTs.  I'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.  Can someone
>> point me to the right C code?
>>
>
> Roger,
>
> The core of the existing classification logic is msGetClass() in
> mapraster.c.
> Also if you search on "classified" in mapdrawgdal.c you will see most
> of the places it gets used.
>
> I believe that ramp based gradients should be written up as an RFC.  There
> was a previous effort which I think was partially implemented.  I would
> suggest you dig up information on it, before going too far.
>
>  http://mapserver.org/development/rfc/ms-rfc-6.html
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> [email protected]
> light and sound - activate the windows | 
> http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to