in reply to AoA data merging

I do not know the reason why you created such a complex data strucxture for the points (@data), but i would start with making that simpler.
@data = ( [ [2289290.30567314, 507448.506452598], [2289282.72943502, 507410.155776398], [2289149, 507002.0625], [2289055.31527948, 506731.474946477], ], [ [2289563.40820205, 512818.142015762], [..., ...] ], );
Or, you could use Math::Complex (see Genetic Algorithms in Perl) to use 2D points (vectors) and predefined functions for working with them.

Replies are listed 'Best First'.
Re: Re: AoA data merging
by jasonk (Parson) on Mar 10, 2003 at 21:17 UTC

    The reason it is so complex is that the Point class included here is but a minimalist version that only contains the elements needed to demonstrate this issue, the objects are actually more complex Geo::ShapeFile::Point objects, with much more information than X and Y coordinates. I could have demonstrated this by including the real data, but I think people would frown upon multi-gigabyte nodes :)