Changes between Initial Version and Version 1 of PerlUsage4


Ignore:
Timestamp:
Jan 29, 2009, 11:16:02 AM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PerlUsage4

    v1 v1  
     1= Usage =
     2== Optional New API Syntax==
     3Available by re-swigging(sp?) with NEXT_GENERATION_API swig -perl5 -shadow -DNEXT_GENERATION_API mapscript.i
     4
     5== Optional New Naming Convention ==
     6Available by re-swigging(sp?) with NEXT_GENERATION_NAMES swig -perl5 -shadow -DNEXT_GENERATION_NAMES mapscript.i
     7
     8== Example ==
     9Here is a simple perl example that loads a mapfile, creates an image and saves it:
     10{{{
     11#!perl
     12#!/usr/bin/perl -w
     13use mapscript;
     14#
     15# Include XBase for access to XBase/DBF files.
     16use XBase;
     17#
     18# Include DBI so XBase files can be queried in an SQL manner.
     19use DBI;
     20#
     21# Start the map.
     22my $map = new mapscript::mapObj('boundary.map') or die('Unable to open mapfile.');
     23#
     24# Render the map.
     25my $img = $map->draw() or die('Unable to draw map');
     26#
     27# Save the rendered image.
     28my $void = $img->save('example.png');
     29}}}
     30----
     31back to PerlMapScript