Geo::Shapelib 0.20 review
DownloadGeo::Shapelib is a Perl extension for reading and writing shapefiles as defined by ESRI. SYNOPSIS use Geo::Shapelib qw/:all
|
|
Geo::Shapelib is a Perl extension for reading and writing shapefiles as defined by ESRI.
SYNOPSIS
use Geo::Shapelib qw/:all/;
or
use Geo::Shapelib qw/:all/;
my $shapefile = new Geo::Shapelib {
Name => 'stations',
Shapetype => POINT,
FieldNames => ['Name','Code','Founded'];
FieldTypes => ['String:50','String:10','Integer:8'];
};
while () {
chomp;
my($station,$code,$founded,$x,$y) = split /|/;
push @{$shapefile->{Shapes}},{ Vertices => [[$x,$y,0,0]] };
push @{$shapefile->{ShapeRecords}}, [$station,$code,$founded];
}
$shapefile->save();
This is a library for reading, creating, and writing shapefiles as defined by ESRI(r) using Perl. The Perl code uses Frank Warmerdam's Shapefile C Library (http://shapelib.maptools.org/). The library is included in this distribution.
Requirements:
Perl
Geo::Shapelib 0.20 keywords