in reply to Geo::ShapeFile

I believe that the comp_includes_z=>0 option explicitly excludes the Z coordinate (set include to 0 means exclude). Get rid of it.

-Mark

Replies are listed 'Best First'.
Re^2: Geo::ShapeFile
by penny (Novice) on May 11, 2005 at 04:52 UTC
    Removed the offending piece of code, unfortunately still does not seem to read the z values. :-(
Re^2: Geo::ShapeFile
by jasonk (Parson) on May 11, 2005 at 13:29 UTC

    In this particular code, comp_includes_z doesn't have any function. All that does is indicate that when comparing two points you want to exclude the Z value from the comparison. For example:

    use Geo::ShapeFile::Point comp_includes_z => 0; my $p1 = Geo::ShapeFile::Point->new(X => 3, Y => 5, Z => 10); my $p2 = Geo::ShapeFile::Point->new(X => 3, Y => 5, Z => 25); # this will return false if comp_includes_z is true, # and return true if comp_includes_z is false if($p1 == $p2) { print "these points are the same spot\n"; }

    We're not surrounded, we're in a target-rich environment!