# This file is used for the interstates shapefile from NOAA I don't # use it, since the "Roads" file has interstates and other roads. # Jason kg4wsv # FEATURE string (80,0) # ROUTE string (120,0) # STATE_FIPS string (2,0) # STATE string (2,0) # BEGIN is called once per dbf file which contains multiple records. BEGIN { # dbfinfo is the "signature" of the dbf file listing the column names in order. # dbfinfo should match the dbf file that we say this dbfawk file goes with. dbfinfo="FEATURE:ROUTE:STATE_FIPS:STATE"; # dbffields is which of the above fields we actually want to look at. dbffields="FEATURE:ROUTE:STATE"} # BEGIN_RECORD is called once per dbf record which contains multiple fields. # Use this rule to re-initialize variables between records. BEGIN_RECORD {key=""; lanes=4; color=4; fill_color=26; label_color=8; name=""; filled=0; pattern=0; display_level=262144; label_level=2048; symbol=""; font_size=3} #/^ROUTE=[ ]*Alt([^,]*)$/ {name="$1";next} #/^ROUTE=(Alt[^,]*,)([^,]*),.*$/ {name="$2";next} #/^ROUTE=([ ]*)([^,]*)(.*)$/ {name="$1:$2:$3";next} #/^ROUTE=([ ]*)([^,]*)(.*)$/ {name="_+$2+$3";next} #/^ROUTE=([ ]*)([^,]*)(.*)$/ {name="$2";next} /^ROUTE=[ ]*([^,]*).*$/ {name="$1";next} #/^ROUTE=([^,]*)(.*)$/ {name="%$1%";next} /^ROUTE=(.*)$/ {name="$1"} #END {}