[mapserver-users] Filename
Puneet Kishor
pkishor at GeoAnalytics.com
Thu May 9 14:57:13 PDT 2002
very easy to do with Perl/Mapscript. It might be hardcoded into the
PHP/Mapscript methods.
here's how in Perl
my $appurl = "url/to/my/app/";
my $tmpdir = "path/to/my/tmp/";
my $mapimgname = $whateveriwant . time() . ".png"; # time() makes it
unique, .png adds the extension
my $imgObj = $mapObj->draw();
mapscript::msSaveImage($imgObj, $tmpdir . $mapimgname, 2,
$mapObj->{interlace}, $mapObj->{transparent}, 95);
my $mapurl = $appurl . "tmp/" . $mapimgname;
pk/
-----Original Message-----
From: Jason Spangler [mailto:JasonS at cassco.org]
Sent: Thursday, May 09, 2002 3:56 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Filename
I'm sure I'm overlooking something, but is it possible to change the name of
the tmp map image file name?
I would like to add different variables to the beginning of the filename at
different times of the day.
Any help would be appreciated.
Thanks,
Jason
Jason Spangler
Cass County Information Systems
616-445-4489
jasons at cassco.org <mailto:jasons at cassco.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020509/3dd8d016/attachment.htm>
More information about the MapServer-users
mailing list