[Mapserver-dev] Re: mapserver bug

Alan Steremberg alans at wunderground.com
Thu Sep 18 14:43:07 EDT 2003


Everything works fine when I turn GDAL on, and it seems fast. For some
reason I assumed that the native methods would be better.  The PNG support
is definately broken, it needs a check at the very least..

Alan

----------------------------
 Alan Steremberg
 415-543-5021 x 103
 http://www.wunderground.com

On Wed, 17 Sep 2003, Frank Warmerdam wrote:

> Alan Steremberg wrote:
> > Hi,
> >
> > The mapraster.c file doesn't seem to pay attention to whether the PNGs are
> > true color, before trying to fish inside the pixel buffer (and it
> > crashes).
> >
> > Is this fixed in the CVS tree, or should I fix the implementation to
> > handle loading truecolor images from gd?
> >
> > I am still not sure if I want to be in 8bit or 24bit mode eventually.. but
> > this seems like a bug.
>
> Alan,
>
> You are referring to the drawPNG() code, right?  Yes, I imagine you are right
> and it should be fixed or at least a clean error message produced.  I would
> suggest you create a bugzilla entry for the issue, and if you are prepared
> to create a patch for it note that in the bug report so no one else works on it.
>
> I don't normally run into this myself because if GDAL is enabled it should be
> used in preference to the drawPNG() code *I think*.  The drawGDAL() code
> for PNG would handle the different modes and also extra rendering options,
> so it isn't worth our putting too much effort into the "legacy" drawPNG()
> code.  However, a clean fix in drawPNG() would be nice if you don't mind
> doing it.
>
> 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
>
>
> _______________________________________________
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
>



More information about the mapserver-dev mailing list