File: zero-points.pl

package info (click to toggle)
libgeo-coordinates-osgb-perl 2.06-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,300 kB
  • ctags: 55
  • sloc: perl: 310,920; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/perl -w

# Toby Thurston -- 14 Aug 2013 
# Find all the 000 000 grid references that are on a LR map

use strict;
use Geo::Coordinates::OSGB "format_grid_landranger";

my @out = ();

for my $n (0 .. 12) {
    for my $e (0 .. 7) {
        my ($sq, undef, undef, @sheets) = format_grid_landranger($e*100000, $n*100000);
        next unless @sheets;
        push @out, "$sq 000 000 is on Landranger sheet $sheets[0]\n";
    }
}

print sort @out;