Error message after uprade to MS 4.4.1

Bart van den Eijnden bartvde at XS4ALL.NL
Wed Mar 9 06:06:39 EST 2005


Hi Berend,

this has been fixed by Frank Warmerdam and will be released in 4.4.2.

See:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118

There is also a thread about this in the archives (Feb 2005) named
"msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only
supported after a raster query"

Best regards,
Bart

> 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