Error message after uprade to MS 4.4.1
Berend Veldkamp
berend.veldkamp at ARIS.NL
Wed Mar 9 03:02:59 PST 2005
Hi,
After upgrading MapServer from version 4.2 to 4.4.1, I suddenly get the
following message when I query the ErrorObj:
"Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, but this
is only supported after a raster query."
The map is drawn fine, so maybe the error object is not properly cleared?
Here's my PHP code:
<?php
dl ("php_mapscript_44.dll");
$map = ms_newMapObj("/path/to/map/my.map");
$pt = ms_newPointObj();
$pt->setXY(400,300);
$map->zoompoint(100,$pt,800,600,$map->extent);
$img = $map->draw();
?>
<html>
<head></head>
<body>
<?php
$error = ms_GetErrorObj();
while ($error && $error->code != MS_NOERR) {
printf ("Error in %s: %s<br>\n", $error->routine, $error->message);
$error = $error->next();
}
?>
<img src="<?php echo $img->saveWebImage(); ?>">
</body>
</html>
--
____________________________
Berend Veldkamp - ARIS
http://www.aris.nl/
____________________________
More information about the MapServer-users
mailing list