Errorlog/errormessages? (problem is drawReferenceMap)

Ragnvald Larsen ragnvald at MINDLAND.COM
Thu Mar 10 01:37:55 PST 2005


Yes I think I am using a map object. The map is made by using a mapfile like
this:

$map_file="tanzania.map";
$map = ms_newMapObj($map_file);

This draws the map-object which I am successfully using later in my code
when I get the map image saved:

$image=$map->draw();
$image_url=$image->saveWebImage();

Then I print it to the screen:

<img src="<?php echo $image_url ?>"</img>

And work further on it to get a list of layers like this:

      $nLayers=$map->numlayers;
      for ($i=0;$i<$nLayers; $i++) {
        $oLayer=$map->getlayer($i);
        echo $oLayer->name."<br>";
        }

It all really works smoothly until I try making a reference map by using
this line.

  $image = $map->drawReferenceMap();

That's where it just stops. Actually no more code is fed to the browser
after this line. A complete halt...


Ragnvald



More information about the MapServer-users mailing list