Skip Menu |

This queue is for tickets about the Geography-NationalGrid CPAN distribution.

Report information
The Basics
Id: 11167
Status: open
Priority: 0/
Queue: Geography-NationalGrid

People
Owner: Nobody in particular
Requestors: cpan [...] barryhunter.co.uk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: cant cope with coordinates near to meridians
The module currently 'dies' if a lat/long is close to zero (because perl converts it to scientific notion but the script checks it as a string!) - this is a problem when the coordinate is close to the Greenwich meridian in the UK! to Fix, update line 73 of Geography\NationalGrid.pm to } elsif ($degrees !~ m/^-?[\d\.]+(e-?\d+)?$/) { there is probably a better way to check for a number than using a RegExp
Our fork at https://github.com/mysociety/Geography-NationalGrid fixes this issue. I'd be happy to do a new release if that was possible.