Using .map file as a raster layer source
Frank Warmerdam
fwarmerdam at GMAIL.COM
Thu Aug 25 17:50:11 EDT 2005
On 8/25/05, Tamas Szekeres <szekeres.tamas at freemail.hu> wrote:
> Frank,
>
> Could the use of msImageCopyMerge or the generalization of msDrawMap (that
> accepts the initial image as a parameter) solve problem you have mentioned?
Tamas,
I think that msImageCopyMerge() will handle all combinations of GD
images (8, 24 and 32bit) but it won't handle other types of imageObj,
such as raw 8, 16 or 32bit images or the various funky formats like
SWF, pdf, etc. Some of them don't make sense. So my suggestion
would be to for you to verify that the imageObj is GD based, and
if not error out. If it is, you can likely use msImageCopyMerge().
For mixed types (one 8bit, one RGB) it will just use gdImageCopyMerge.
You might need to look into that to see if it handles mismatched types
properly.
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