1# Written for the Tiger/Line 2009 dataset
2# NB: Colors have been chosen with a black background in mind.
3#
4#  Copyright (C) 2010  Peter Gamache, KC0TFB
5#
6#  This program is free software; you can redistribute it and/or
7#  modify
8#  it under the terms of the GNU General Public License as published
9#  by
10#  the Free Software Foundation; either version 2 of the License, or
11#  (at your option) any later version.
12#
13#  This program is distributed in the hope that it will be useful,
14#  but WITHOUT ANY WARRANTY; without even the implied warranty of
15#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16#  GNU General Public License for more details.
17#
18#  You should have received a copy of the GNU General Public License
19#  along with this program; if not, write to the Free Software
20#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21#  02111-1307  USA
22#
23#  see file COPYING for details
24#
25# color,label_color,fill_color	sets object colors
26# lanes				sets width of lines drawn (in pixels)
27# name				sets the text that will be used as the label for the feature
28# symbol			"XYZ", where X=group (/ or \), Y=symbol and Z=overlay
29# fill_style (w/ filled=1)      0=solid, 1=tiled, 2=stippled, 3=Opaque Stippled
30# fill_stipple			0 is a 13 percent stipple, 1 is 25%, 2 is 50%.
31# pattern			line pattern: 0=solid, 1=dashed, 2=double dash
32# display_level			maximum zoom level for object display
33# label_level			maximum zoom level for label display
34# font_size			0="Tiny", 4="Huge"
35
36BEGIN {
37dbfinfo ="STATEFP:COUNTYFP:COUSUBFP:COUSUBNS:COSBIDFP:NAME:NAMELSAD:LSAD:CLASSFP:MTFCC:CNECTAFP:NECTAFP:NCTADVFP:FUNCSTAT:ALAND:AWATER:INTPTLAT:INTPTLON";
38dbffields="NAMELSAD:MTFCC";
39}
40
41BEGIN_RECORD {
42  color=11; # color 11 used on things we missed.
43  # Set defaults for other values:
44  name=""; filled=0; pattern=0; key=""; lanes=1; fill_color=20; label_color=20; fill_style=0;
45  display_level=64; label_level=32; font_size=0; symbol=""; fill_stipple=0;
46}
47
48/^NAMELSAD=(.*)$/ {name="$1";next; }
49/^MTFCC=G/ { # "County Subdivisions" - better known as cities, towns and townships.
50display_level=128; label_level=96; color=115; label_color=115; next}
51
52#END_RECORD {}
53#END {}
54