[mapserver-users] PHP mapscript: saveWebImage: an easy one

Andrea Giacomelli andreag at crs4.it
Thu Sep 20 08:31:10 PDT 2001


Sorry for coming back on these trivial 3.4->3.5 issues:

I have setup a new 3.5 installation which I would like to test.

This is the version installed:

MapScript Version (Jul 20, 2001)
MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=OGR
INPUT=SHAPEFILE
message output:
 


code used:
 
$img = $map->draw();
$url = $img->saveWebImage(MS_GIF,0,0,0);
printf("<IMG SRC=%s WIDTH=%d HEIGHT=%d>\n", $url, $map->width,
$map->height);


result:

Warning: Wrong parameter count for savewebimage() in
c:\data\htdocs/mia/testcrs4/test_draw_map.php
on line 55
 
....I have tried with variants (MS_PNG, numeric equivalents, changing
number of parameters - even though I remember the documentation
regarding the syntax changes in this method.
...what am I overlooking ?

TIA and regards,
-- 
=========================================
Andrea Giacomelli
Centre for Advanced Studies, Research and
Development in Sardinia

http://www.crs4.it/~andreag
=========================================
                Mailing address:
                Sesta Strada Ovest,
                Z.I. Macchiareddu
                C.P. 94
                09010 Uta (CA) ITALY



More information about the MapServer-users mailing list