[mapserver-dev] mapgd2 - raster support

Frank Warmerdam warmerdam at pobox.com
Wed Feb 24 13:05:26 EST 2010


Lime, Steve D (DNR) wrote:
> I think the jury is still out on GD2 and rasters. I thought Thomas had
> talked about the raster drawing code potentially supporting the
> rasterBufferObj AND a gdImagePtr by adding a gdImagePtr to the
> rasterBufferObj. He should weigh in with his thoughts though.

Steve,

Yikes!  That would substantially alter how I handle rasterBufferObj.  I
have been working on the assumption that rasterBufferObj will always
either be RGB or RGBA (depending on whether the "a" pointer is set).

That said, I can fairly easily make the raster code fetch the gdImg
pointer from the imageObj and operate as it always when rendering with
the GD2 driver.  I'd essentially just ignore the fact that it's implemented
as a plugin-renderer driver.

Certainly if we go through the RGB/RGBA color model of the rasterBufferObj
we are going to have a very hard time preserving exact colors for
classified rasters (as an example).

I'll hold a bit on work in this area until we have a clearer plan.

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-dev mailing list