# This file is used for the cities shapefile from National Atlas # development stopped on this file, because the data has very large # cities (e.g., Nashville, TN) and very small communities (e.g., Smoke # Rise, AL) in the same Population Range (Undetermined). because of # this I can't come up with a useful filter. -jdw kg4wsv # 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="CITIESX020:FEATURE:NAME:POP_RANGE:POP_2000:FIPS55:COUNTY:FIPS:STATE:STATE_FIPS:DISPLAY"; # dbffields is which of the above fields we actually want to look at. #dbffields="FEATURE:NAME:POP_RANGE:POP_2000:DISPLAY"} dbffields="CITIESX020:FEATURE:NAME:POP_RANGE:POP_2000:FIPS55:COUNTY:FIPS:STATE:STATE_FIPS:DISPLAY"} # 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=1; color=26; fill_color=26; label_color=9; name=""; filled=0; pattern=0; display_level=262144; label_level=262144; symbol="//"; font_size=2;display_flag=0} ##/NAME=(.*)$/ {name="$1";} ##/CITIESX020=(.*)$/ {name="$(name):$1";} ##/FEATURE=(.*)$/ {name="$(name):$1";} ###/POP_RANGE=(.*)$/ {name="$(name):$1";} ##/POP_2000=(.*)$/ {name="$(name):$1";} ##/FIPS55=(.*)$/ {name="$(name):$1";} ##/COUNTY=(.*)$/ {name="$(name):$1";} ##/FIPS=(.*)$/ {name="$(name):$1";} ##/STATE=(.*)$/ {name="$(name):$1";} ##/STATE_FIPS=(.*)$/ {name="$(name):$1";} ##/DISPLAY=(.*)$/ {name="$(name):$1";} /^NAME=(.*)$/ {name="$1"} #/POP_RANGE=(.*)$/ {name="$(name):$1"} #/POP_RANGE=Undetermined/ {if (!$(display_flag) {display_level=128;name="$(name) ****"}} /POP_RANGE=Undetermined/ {display_level=128} /POP_RANGE=0 - 9,999/ {display_level=512} /POP_RANGE=10,000 - 49,999/ {display_level=2047} /POP_RANGE=50,000 - 99,999/ {display_level=4095} #/POP_RANGE=100,000 - 249,999/ {display_level=2048} #/POP_2000=(.*)$/ {name="$(name):$1"} /DISPLAY=1/ {display_level=262144} #END {}