Reference Map problem

Philippe Gondek philippe.gondek at GMAIL.COM
Fri May 20 07:41:32 EDT 2005


Hi List,

I try to render a reference map!!!
but I have an error:

Fatal error: [MapServer Error]: msImageLoadGD():
(/var/www/htdocs/miam/tmp/regions.png) in
/var/www/localhost/htdocs/miam/monscript.php on line 161

Here is my error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

$mapref->set("image","/var/www/htdocs/miam/tmp/regions.png");
$mapref->extent->minx = $xmin;    |
$mapref->extent->miny = $ymin;    | the same as the extent of the reference map
$mapref->extent->maxx = $xmax;  |
$mapref->extent->maxy = $ymax;  |
.
.
.
// Genere la carte de reference
$image3=$map->drawReferenceMap();
$ScaleBar_url = $image3->saveWebImage();

What is the right way to draw a reference map...

Thanks...



More information about the mapserver-users mailing list