PNG24 output and GDAL dependency?

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Apr 26 09:46:09 EDT 2006


Hi Frank,

with respect to the first problem, Mapserver outputs an error message in
this case:

[26-Apr-2006 14:20:07] PHP Warning:  [MapServer Error]:
msDrawRasterLayerLow(): Attempt to render raster layer to IMAGEMODE RGB or
RGBA but without GDAL available.  24bit output requires GDAL.

Are you not aware of this requirement?

Wrt to the other problem, we'll try to do some debugging on it.

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: Frank Warmerdam [mailto:fwarmerdam at gmail.com]Namens Frank Warmerdam
Verzonden: woensdag 26 april 2006 15:47
Aan: Eijnden, B. van den (Bart)
CC: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: Re: [UMN_MAPSERVER-USERS] PNG24 output and GDAL dependency?


Eijnden, B. van den (Bart) wrote:
> Hi list,
> 
> we are trying to create a minimal PHP/Mapscript rpm, but are running into
> the issue that for 24 bits PNG output there is a dependency on GDAL. Why
is
> this and can it be avoided somehow?
> 
> Also, if we try to use 8 bit PNG (PC256 instead of RGB/RGBA), we get a
> segfault in PHP/Mapscript if GDAL is not compiled in. If GDAL is compiled
> in, all works fine.

Bart,

I am not aware of any reason why either would be the case.  PNG24 output
should work fine without GDAL.  Likewise I don't know why you run into the
problem with PC256.   It is *possible* that with GDAL linked in an internal
copy of libpng is getting used instead of the system libpng, though I would
advise against using internal libpng in an RPM setup.

I would suggest trying to debug each of these problems to try and work out
what is happening.

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    | President OSGF, http://osgeo.org


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the mapserver-users mailing list