in reply to Geo::ShapeFile and Projection Conversion (floating point troubles?)
Try reordering your use statements:
use Geo::ShapeFile::Point comp_includes_m => 0, comp_includes_z => 0; use Geo::ShapeFile;
From the "Important Note" in the documentation:
This module uses overloaded operators to allow you to use == or eq to compare two point objects. By default points are considered to be equal only if their X, Y, Z, and M attributes are equal. If you want to exclude the Z or M attributes when comparing, you should use comp_includes_z or comp_includes_m when importing the object. Note that you must do this before you load the Geo::ShapeFile module, or it will pass it's own arguments to import, and you will get the default behavior
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Geo::ShapeFile and Projection Conversion (floating point troubles?)
by jasonk (Parson) on Sep 20, 2006 at 14:44 UTC |