Orthophoto basics WAS: [Mapserver-users] Raster geotiff turns background yellow

Frank Warmerdam warmerdam@pobox.com
Tue, 15 Jul 2003 15:27:36 -0400


Charlton Purvis wrote:
>> MAP
>    ...
> 
> IMAGETYPE jpeg
> 
> OUTPUTFORMAT
>   NAME jpeg
>   DRIVER "GD/JPEG"
>   MIMETYPE "image/jpeg"
>   IMAGEMODE RGBA
>   EXTENSION "jpg"
> END

Charlton,

As noted by others for GD 2.0.x you should get something at least 2.0.11 or
later.  Earlier versions have serious problems with alpha blending a few
other things.

I would also note that JPEG does not support IMAGEMODE RGBA only RGB.  I am
not sure what will happen if you get this wrong.  Likely nothing terrible,
just that the alpha is lost when writing out to the JPEG file, but it might
is possible it could cause other problems.

However, I am doubtful whether the GD version or the IMAGEMODE thing are
your problem if you are getting other layers OK with this OUTPUTFORMAT
configuration.

Have you tried this map with "shp2img" and with debugging all turned on?  Do
you get any messages?
eg.

shp2img -all_debug 1 -m my.map -o out.jpg

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users