Changeset 627


Ignore:
Timestamp:
Dec 17, 2007, 4:12:55 PM (12 years ago)
Author:
npemap
Message:

Don't calculate lat+long, as takes too long

File:
1 edited

Legend:

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

    r624 r627  
    1010use strict;
    1111use DBI;
    12 use Geography::NationalGrid;
    13 use Geography::NationalGrid::GB;
    14 use Geography::NationalGrid::IE;
    1512
    1613# Find our private perl libraries
     
    4037print "#  http://www.npemap.org.uk/data/ for formatted data\n";
    4138print "#\n";
    42 print "# <internal id>,<outward>,<inward>,<easting>,<northing>,<grid>,<WGS84 lat>,<WGS84 long>,<problem reported>\n";
     39print "# <internal id>,<outward>,<inward>,<easting>,<northing>,<grid>,<problem reported>\n";
    4340
    4441# Get our data fetch query
     
    5754        }
    5855       
    59         # Generate lat+long
    60         my ($lat,$long) = eastingNorthingToLatLong($e,$n,$grid);
    61 
    6256        # Make e+n look nicer
    6357        $e =~ s/^(\d+)\.\d+$/$1/;
    6458        $n =~ s/^(\-?\d+)\.\d+$/$1/;
    6559
    66         # Make lat+long look nicer
    67         $lat = sprintf("%0.6f", $lat);
    68         $long = sprintf("%0.6f", $long);
    69 
    70         print "$id,$outer,$inner,$e,$n,$grid,$lat,$long,$problem\n";
     60        print "$id,$outer,$inner,$e,$n,$grid,$problem\n";
    7161}
    7262
Note: See TracChangeset for help on using the changeset viewer.