[Mapserver-users] php mapscript 4 drawLegendIcon Bug

W. Steph chewbizz at hotmail.com
Fri Jul 18 05:24:59 PDT 2003


Hello !

I changed my mapserver version : 3.6 => 4.0 beta 2
I now have php 4.3.2 working with mapscript.
I didn't test every features, but everything seems to work fine except with 
the drawLegendIcon function.
As soon as the function is executed, php.exe crashes.
Here is my code :

$lclass = $layertmp->getClass(0);
$lim = $lclass->createLegendIcon(16,16);
if ($lclass->drawLegendIcon(16,16,$lim,0,0) == MS_SUCCESS)
{
	$legendurl = $mapServerImagesUrl.($lim->saveWebImage(MS_GIF,1,1,0));
	$hasLegend = true;
}
else
{
	$hasLegend = false;
}

Have you heard about that bug ???
Thanks a lot

Steph

_________________________________________________________________
Découvrez les nouvelles émoticônes animées de  http://g.msn.fr/FR1001/866 
MSN Messenger nouvelle formule




More information about the MapServer-users mailing list