forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 0
PerlUsage4
Thomas Bonfort edited this page Apr 6, 2012
·
2 revisions
Available by re-swigging(sp?) with NEXT_GENERATION_API swig -perl5 -shadow -DNEXT_GENERATION_API mapscript.i
== Optional New Naming Convention ==
Available by re-swigging(sp?) with NEXT_GENERATION_NAMES swig -perl5 -shadow -DNEXT_GENERATION_NAMES mapscript.i
== Example ==
Here is a simple perl example that loads a mapfile, creates an image and saves it:
{{{
#!perl
#!/usr/bin/perl -w
use mapscript;
use XBase;
use DBI;
my $map = new mapscript::mapObj('boundary.map') or die('Unable to open mapfile.');
my $img = $map->draw() or die('Unable to draw map');
back to PerlMapScript