Ignore:
Timestamp:
Mar 26, 2007, 10:32:49 AM (14 years ago)
Author:
Nick Burch
Message:

Include 2+6 NGRs in the dump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/exporter/export.pl

    r461 r510  
    5050print "# This information is public domain, and comes from http://www.npemap.org.uk/\n";
    5151print "#\n";
    52 print "# <outward>,<inward>,<easting>,<northing>,<WGS84 lat>,<WGS84 long>\n";
     52print "# <outward>,<inward>,<easting>,<northing>,<WGS84 lat>,<WGS84 long>,<2+6 NGR>\n";
    5353
    5454# Get our data fetch query
     
    6060        # Generate lat+long
    6161        my ($lat,$long) = eastingNorthingToLatLong($e,$n);
     62        # Generate 2+6 NGR
     63        my $ngr = eastingNorthingToNGR($e,$n);
    6264
    6365        # Make e+n look nicer
     
    6971        $long = sprintf("%0.6f", $long);
    7072
    71         print "$outer,$inner,$e,$n,$lat,$long\n";
     73        print "$outer,$inner,$e,$n,$lat,$long,$ngr\n";
    7274}
    7375
Note: See TracChangeset for help on using the changeset viewer.