Geo-ShapeFile reviews

cpanratings
 

RSS | Module Info | Add a review of Geo-ShapeFile

Geo-ShapeFile (2.52) *****

Just what I needed! Thanks! Got a bunch of files from a client and could extract the points and data in one easy interface.

use Geo::ShapeFile;
use Data::Dumper qw{Dumper};

my $obj = new Geo::ShapeFile($file);

for my $index (1 .. $obj->shapes) {

my $shape = $obj->get_shp_record($index);

next unless $shape->shape_type == 1; #point

my $data = $obj->get_dbf_record($index);

my ($point)=$shape->points;

print join("\t", $index, $point->X, $point->Y), "\n";

print Dumper([$data]);
}

I would have given documentation a higher rating but I think the package needs a few more example scripts.

Michael R. Davis - 2010-12-07T15:07:12 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No

Geo-ShapeFile (2.52) *****

The module is flawless, and a great way to quickly turn GIS into KML/PNGs with Perl (although for larger maps, I have found all Perl-based solutions too slow, and had to resort to ogr2ogr, PostGIS, or Clipper).

Lee Goddard - 2009-05-14T04:31:56 (permalink)

2 out of 3 found this review helpful. Was this review helpful to you?  Yes No

Geo-ShapeFile (2.52) *****

Not only does Geo::ShapeFile give you an easy and streamlined way to access data in ShapeFiles, it provides several useful utility methods as well! I've successfully incorporated this module into a couple of large-scale projects without a hitch.

Sincere thanks go to the author for putting out this wonderful module.

Blake Willmarth - 2009-04-29T07:44:49 (permalink)

2 out of 2 found this review helpful. Was this review helpful to you?  Yes No