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

DWIM is Perl's answer to Gödel
  • Comment on Re: Geo::ShapeFile and Projection Conversion (floating point troubles?)
  • Download Code

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

    Although this is true, it isn't affecting the code shown, which isn't doing any comparisons...


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