Changeset 513 for trunk


Ignore:
Timestamp:
Mar 26, 2007, 6:47:26 PM (13 years ago)
Author:
Nick Burch
Message:

Support fetching metadata on ie tiles too, via the optional ie flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/get-meta.fcgi

    r474 r513  
    3636        }
    3737
     38        # Did they request the irish grid?
     39        my $ie = 0;
     40        if(defined $cgi->param('ie')) {
     41                $ie = 1;
     42        }
     43
    3844        # While tiles (well, easting and northing km values) do they want to
    3945        #  know about?
     
    7581        # Load the meta files (one per easting)
    7682        foreach my $easting (keys %tiles) {
    77                 my $meta = $tiledir."/meta1/".$easting.".txt";
     83                my $meta_dir = "/meta1/";
     84                if($ie) { $meta_dir = "/meta1i/"; }
     85
     86                my $meta = $tiledir.$meta_dir.$easting.".txt";
    7887                if(-f $meta) {
    7988                        open(META, "<$meta");
Note: See TracChangeset for help on using the changeset viewer.