[mapserver-dev] mapgd2 - raster support

Frank Warmerdam warmerdam at pobox.com
Wed Feb 24 13:57:34 EST 2010


Lime, Steve D (DNR) wrote:
> I think the gdImagePtr in the imageObj becomes obsolete if GD is implemented solely as a plugin renderer (pdf and svg pointers too potentially). Thomas has proposed
> holding gdImagePtr instead in the rasterBufferObj. I think he's found it will make pixmap symbol support much simpler.
> 
> One other thing, we talked about GD supporting *only* PC256 image types and really cutting back on the use cases. 

Steve,

Ugg, this seems like such a foul hack on an otherwise fairly clean
rasterBufferObj architecture.  Couldn't we just add an
msGetGD2_gdImg(imageObj*) function which could call if we establish that
the imageObj->format is the GD2 renderer and it would return the gdImg
pointer?  We could even add a function in the VTable which would
return an opaque "renderer object pointer" whose interpretation would
depend on the specific renderer.  Then we could use that for the GD2
renderer to get the gdImg.

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