/[pkg-grass]/packages/roadmap/trunk/src/rdmdownload
ViewVC logotype

Contents of /packages/roadmap/trunk/src/rdmdownload

Parent Directory Parent Directory | Revision Log Revision Log


Revision 922 - (show annotations) (download)
Sat Jun 23 22:28:36 2007 UTC (5 years, 11 months ago) by frankie
File size: 1162 byte(s)
[svn-inject] Forking roadmap source to Trunk
1 #!/bin/sh
2 #
3 # This script download the most recent version of the complete set of
4 # TIGER files from the US Census Bureau's web site.
5 #
6 # USAGE:
7 # ------
8 #
9 # rdmdownload <destination-path> [format=2000|2002|2004] [<state-symbol> ..]
10 #
11 # Example: downloadmap /var/tmp/maps CA
12 #
13 # PLEASE NOTE THE TIGER FILES ARE HUGE: THIS DOWNLOAD IS LIKELY
14 # TO TAKE A VERY LONG TIME TO COMPLETE AND THE TIGER FILES WILL
15 # USE A AWFUL LOT OF SPACE ON YOUR LOCAL HARD DRIVE.
16 #
17 # Now you know...
18
19 TIGERDIR=$1
20 shift
21
22 TIGERURL=http://www2.census.gov/geo/tiger/tiger2004se
23 TIGEROPT1="-nd -np -r -N -P $TIGERDIR -A.zip"
24 TIGEROPT2="-nd -np -r -N -P $TIGERDIR -A.ZIP"
25
26 case $1 in
27 format=2000) TIGERURL=http://www2.census.gov/geo/tiger/tigerua
28 shift
29 ;;
30 format=2002) TIGERURL=http://www2.census.gov/geo/tiger/tiger2002
31 shift
32 ;;
33 format=2004)
34 shift
35 ;;
36 esac
37
38 if [ $# -gt 0 ] ; then
39
40 for i in $*
41 do
42 wget $TIGEROPT1 $TIGERURL/$i/
43 wget $TIGEROPT2 $TIGERURL/$i/
44 done
45
46 else
47
48 wget $TIGEROPT1 $TIGERURL/
49 wget $TIGEROPT2 $TIGERURL/
50 fi
51
52 rm -f $TIGERDIR/robots.txt
53

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.5