| 1 | #!/usr/bin/perl -w | ||
| 2 | # | ||
| 3 | #Convert V + H to latlong in perl | ||
| 4 | # | ||
| 5 | #Copyright (C) 2004 Paul Timmins, All rights reserved. | ||
| 6 | #This program is free software; you can redistribute it and/or | ||
| 7 | #modify it under the same terms as Perl itself. | ||
| 8 | # | ||
| 9 | #The coordinates given should correspond to PNTCMIMN, in Downtown Pontiac, MI, USA. | ||
| 10 | # | ||
| 11 | |||
| 12 | use strict; | ||
| 13 | use Geo::Coordinates::VandH; | ||
| 14 | my $lat; | ||
| 15 | my $lon; | ||
| 16 | my $vhobj = new Geo::Coordinates::VandH; | ||
| 17 | ($lat,$lon) = $vhobj->vh2ll(5498,2895); | ||
| 18 | printf "%lf,%lf\n",$lat, $lon; | ||
| 19 |