[mapserver-users] Where is the raster classifier code in Mapserver?
Frank Warmerdam
warmerdam at pobox.com
Tue Jan 13 14:02:25 PST 2009
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, 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