Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Geo-ShapeFile CPAN distribution.

Report information
The Basics
Id: 8509
Status: resolved
Priority: 0/
Queue: Geo-ShapeFile

People
Owner: jasonk [...] cpan.org
Requestors: cpan [...] barryhunter.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.50
Fixed in: (no value)



Subject: centroid function
I think the centroid function in Geo::ShapeFile::Shape is incorrect! When calculating the average it totals up the values then MULTIPLYS by the number of points! This is the current code: 502: X => ($cx * @points), 503: Y => ($cy * @points), Which SHOULD be: 502: X => ($cx / @points), 503: Y => ($cy / @points), Otherwise a perfect module!