source: subversion/utils/CityKML/download_specific.pl @ 2058

Last change on this file since 2058 was 1934, checked in by ojw, 13 years ago

Package - can't get ZIP to include the directories properly, leaving icons out
download_specific - to download a specific numbered city-data file

  • Property svn:executable set to *
File size: 325 bytes
RevLine 
[1934]1#!/usr/bin/perl
2use LWP::Simple;
3
4# downloads one map then exits
5$numfail = 0;
6$i = shift() || die("Usage: $0 [city number]\n");
7
8$URL = "http://almien.co.uk/OSM/Places/Data/$i.osm.gz";
9$File = "data/data_$i.osm.gz";
10
11# If we don't already have a file, download it
12if(!is_success(getstore($URL,$File))){
13  die("Failed\n");
14}
Note: See TracBrowser for help on using the repository browser.