Mapscript + PNG: filled symbol has only a partly filled output

Norbert Thieme norbert.thieme at ILMENAU.BAW.DE
Tue Oct 12 04:58:10 EDT 2004


Daniel Morissette schrieb:

> Norbert Thieme wrote:
>
>>
>> The problem is that it is not completly filled -  see circle_symbol.png.
>> This only happens with mapscript. In CGI mode the output is fine. I
>> tried GD/PNG and GDAL/PNG as OUTPUTFORMAT but the problem is the same in
>> both results. When I use JPEG as outputfformat it is completly filled.
>> I'm using MS v4.2.2  on Linux with Apache2 and PHP 4.3.6.
>>
>
> If this happens only with PHP MapScript and not with the CGI then I
> woud suspect that conflicting versions of GD or libpng are used by
> MapServer and by PHP. If you have the PHP GD module enabled then try
> disabling it, or rebuilding PHP using the same GD and libpng that you
> used to build MapServer and php_mapscript.so
>
> Daniel

Daniel,

thanks for the response. I think I found the problem. I just looked in
the changelog from PHP and found that there seem to be a bug in PHP:

"Bug #27995      imagefilltoborder fails to fill a polygon" -->
http://bugs.php.net/bug.php?id=27995

This bug seem to be limited to version 4.3.6. I get the newer version
and now it work.

Regards,
Norbert



More information about the mapserver-users mailing list