First off, my laptop display is 1400x1050 so some of the zoom factors may have to be edited for your platform.

In /usr/local/share/xastir/maps, I have the directory tiger2008 that has the following subdirectories: arealm, areawater, county, cousub, edges, and pointlm. The directories hold their obvious files. The only "unobvious" directory here is "county" which has in it a copy of the NWS county map that is used for mapping weather messages.

That sets up the tigermap directories. Following are the dbfawk's that I am currently using:

# tgr2007arealm.dbfawk
#
# Copyright (C) 2003-2008  The Xastir Group
#
# Census.gov 2007-FE TigerMaps for AREALM
# Richard Polivka, N6NKO - April, 2008
#
#
# This dbfawk file is used to map arbitrary dbf data that accompanies
# a shapefile into Xastir canoncical values of:
#   key     - search key
# lanes - width of feature (usually a road but applies to rivers, etc. too)
#   color   - color to draw the road
#   name    - name of the road for labels
#   filled  - whether a polygon is drawn filled or not
#   fill_color - color to fill polygon with
# pattern - line pattern for road, river, etc. (0 - solid; 1 - dash; 2 - double dash)
#   display_level - highest zoom level at which to display the feature
#   label_level - highest zoom level at which to display the label
#   symbol  - 3 char 'TIO': table, ID, overlay
# NOTE: This file format is modeled after awk but is nowhere near awk
#  compatible.
#
# This file is used to map US Census Tiger/Line Shapefiles as available at:
# http://www.census.gov/cgi-bin/geo/shapefiles/national-files
#

# 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="STATEFP:COUNTYFP:ANSICODE:AREAID:FULLNAME:MTFCC";
#dbffields is which of the above fields we actually want to look at.
# No point reading dbffields that are not looked at further.
dbffields="FULLNAME:MTFCC";
}

# BEGIN_RECORD is called once per dbf record which contains multiple fields.
# Use this rule to re-initialize variables between records.
# use color 11 to highlight stuff that isn't properly mapped.
BEGIN_RECORD {key=""; lanes=1; color=6; fill_color=11; name=""; filled=0; pattern=0; display_level=8192; label_level=64; label_color=8; font_size=0; symbol=""; fill_style=0 }

/^FULLNAME=(.*)$/ {name="$1";next}

# buildings
/^MTFCC=K1/ {filled=1; fill_style=2; fill_stipple=1; color=11; fill_color=11; label_color=8; label_level=64; display_level=1024; font_size=1; next}
# public university / school
/^MTFCC=K25/ {filled=1; fill_style=2; fill_stipple=1; color=4; fill_color=4; label_color=8; label_level=64; display_level=1024; font_size=1; next}
# airports
/^MTFCC=K24/ {filled=1; fill_style=2; fill_stipple=1; color=42; fill_color=42; label_color=8; label_level=64; display_level=1024; font_size=1; next}
# parks
/^MTFCC=K2[123]/ {filled=1; fill_style=2; fill_stipple=1; color=35; fill_color=35; label_color=8; label_level=64; display_level=1024; font_size=1; next}
# private / religious school
/^MTFCC=K35/ {filled=1; fill_style=2; fill_stipple=1; color=4; fill_color=4; label_color=8; label_level=64; display_level=1024; ; font_size=1; next}

# just a demo of the END_RECORD and END rules:
#END_RECORD {name="$name ($key)";}
#END {}


# tgr2007areawater.dbfawk
#
# Copyright (C) 2003-2008  The Xastir Group
#
# Census.gov 2007-FE TigerMaps for AREAWATER
# Richard Polivka, N6NKO - April, 2008
#
#
# This dbfawk file is used to map arbitrary dbf data that accompanies
# a shapefile into Xastir canoncical values of:
#   key     - search key
# lanes - width of feature (usually a road but applies to rivers, etc. too)
#   color   - color to draw the road
#   name    - name of the road for labels
#   filled  - whether a polygon is drawn filled or not
#   fill_color - color to fill polygon with
# pattern - line pattern for road, river, etc. (0 - solid; 1 - dash; 2 - double dash)
#   display_level - highest zoom level at which to display the feature
#   label_level - highest zoom level at which to display the label
#   symbol  - 3 char 'TIO': table, ID, overlay
# NOTE: This file format is modeled after awk but is nowhere near awk
#  compatible.
#
# This file is used to map US Census Tiger/Line Shapefiles as available at:
# http://www.census.gov/cgi-bin/geo/shapefiles/national-files
#

# 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="STATEFP:COUNTYFP:ANSICODE:HYDROID:FULLNAME:MTFCC";
#dbffields is which of the above fields we actually want to look at.
# No point reading dbffields that are not looked at further.
dbffields="FULLNAME:MTFCC";
}

# BEGIN_RECORD is called once per dbf record which contains multiple fields.
# Use this rule to re-initialize variables between records.
# use color 11 to highlight stuff that isn't properly mapped.
BEGIN_RECORD {key=""; lanes=1; color=26; fill_color=26; name=""; filled=0; pattern=0; display_level=8192; label_level=32; label_color=26; font_size=0; symbol=""; fill_style=0 }

# get name of feature
/^FULLNAME=(.*)$/ {name="$1";next}
# water
# /^MTFCC=H11/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# LAKE / POND
/^MTFCC=H2030/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# STREAM / RIVER
/^MTFCC=H3010/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# just a demo of the END_RECORD and END rules:
#END_RECORD {name="$name ($key)";}
#END {}

# tgr2007areawater.dbfawk
#
# Copyright (C) 2003-2008  The Xastir Group
#
# Census.gov 2007-FE TigerMaps for AREAWATER
# Richard Polivka, N6NKO - April, 2008
#
#
# This dbfawk file is used to map arbitrary dbf data that accompanies
# a shapefile into Xastir canoncical values of:
#   key     - search key
# lanes - width of feature (usually a road but applies to rivers, etc. too)
#   color   - color to draw the road
#   name    - name of the road for labels
#   filled  - whether a polygon is drawn filled or not
#   fill_color - color to fill polygon with
# pattern - line pattern for road, river, etc. (0 - solid; 1 - dash; 2 - double dash)
#   display_level - highest zoom level at which to display the feature
#   label_level - highest zoom level at which to display the label
#   symbol  - 3 char 'TIO': table, ID, overlay
# NOTE: This file format is modeled after awk but is nowhere near awk
#  compatible.
#
# This file is used to map US Census Tiger/Line Shapefiles as available at:
# http://www.census.gov/cgi-bin/geo/shapefiles/national-files
#

# 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="STATEFP:COUNTYFP:ANSICODE:HYDROID:FULLNAME:MTFCC";
#dbffields is which of the above fields we actually want to look at.
# No point reading dbffields that are not looked at further.
dbffields="FULLNAME:MTFCC";
}

# BEGIN_RECORD is called once per dbf record which contains multiple fields.
# Use this rule to re-initialize variables between records.
# use color 11 to highlight stuff that isn't properly mapped.
BEGIN_RECORD {key=""; lanes=1; color=26; fill_color=26; name=""; filled=0; pattern=0; display_level=8192; label_level=32; label_color=26; font_size=0; symbol=""; fill_style=0 }

# get name of feature
/^FULLNAME=(.*)$/ {name="$1";next}
# water
# /^MTFCC=H11/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# LAKE / POND
/^MTFCC=H2030/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# STREAM / RIVER
/^MTFCC=H3010/ {filled=1; fill_style=2; fill_stipple=1; color=117; fill_color=117; label_color=8; label_level=64; display_level=1024; next}

# just a demo of the END_RECORD and END rules:
#END_RECORD {name="$name ($key)";}
#END {}

# tgr2007edge.dbfawk
#
# Copyright (C) 2003-2008  The Xastir Group
#
# Census.gov 2007-FE TigerMaps for EDGE
# Richard Polivka, N6NKO - April, 2008
#
#
# This dbfawk file is used to map arbitrary dbf data that accompanies
# a shapefile into Xastir canoncical values of:
#   key     - search key
# lanes - width of feature (usually a road but applies to rivers, etc. too)
#   color   - color to draw the road
#   name    - name of the road for labels
#   filled  - whether a polygon is drawn filled or not
#   fill_color - color to fill polygon with
# pattern - line pattern for road, river, etc. (0 - solid; 1 - dash; 2 - double dash)
#   display_level - highest zoom level at which to display the feature
#   label_level - highest zoom level at which to display the label
#   symbol  - 3 char 'TIO': table, ID, overlay
# NOTE: This file format is modeled after awk but is nowhere near awk
#  compatible.
#
# This file is used to map US Census Tiger/Line Shapefiles as available at:
# http://www.census.gov/cgi-bin/geo/shapefiles/national-files
#

# 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="STATEFP:COUNTYFP:TLID:TFIDL:TFIDR:MTFCC:FULLNAME:SMID:LFROMADD:LTOADD:RFROMADD:RTOADD:ZIPL:ZIPR:FEATCAT:HYDROFLG:RAILFLG:ROADFLG:OLFFLG:PASSFLG:DIVROAD:EXTTYP:TTYP:DECKEDROAD:ARTPATH:PERSIST:GCSEFLG:OFFSETL:OFFSETR:TNIDF:TNIDT";
#dbffields is which of the above fields we actually want to look at.
# No point reading dbffields that are not looked at further.
dbffields="TLID:MTFCC:FULLNAME";
}

# BEGIN_RECORD is called once per dbf record which contains multiple fields.
# Use this rule to re-initialize variables between records.
# use color 11 to highlight stuff that isn't properly mapped.
BEGIN_RECORD {key=""; lanes=3; color=96; fill_color=96; name=""; filled=1; pattern=0; display_level=8192; label_level=32; label_color=8; font_size=0; symbol=""; fill_style=0 }

/^FULLNAME=(.*)$/ {name="$1";next}
# ----------------------------------------------------------------

# STREAM / RIVER
/MTFCC=H3010/ {lanes=1; filled=1; fill_style=2; fill_stipple=2; color=97; fill_color=97; label_color=8; display_level=1024; next;}
# BRAIDED STREAM
/MTFCC=H3013/ {lanes=1; filled=1; fill_style=2; fill_stipple=1; color=97; fill_color=97; label_color=8; display_level=1024; next;}
# CANAL, DITCH OR AQUEDUCT
/MTFCC=H3020/ {lanes=1; filled=1; fill_style=2; fill_stipple=0; color=97; fill_color=97; label_color=8; display_level=1024; next;}
# LAKE / POND
/MTFCC=H2030/ {lanes=1; filled=1; fill_style=2; fill_stipple=2; color=97; fill_color=97; label_color=8; display_level=1024; next;}

# AIRPORT
/MTFCC=K2451/ {lanes=1; filled=1; fill_style=2; fill_stipple=2; color=100; fill_color=100; label_color=8; label_level=32; display_level=1024; next}

# POINT-TO-POINT LINE
/MTFCC=L4130/ {display_level=0; label_level=0; next;)

# PROPERTY - PARCEL LINE
/MTFCC=L4140/ {display_level=0; label_level=0; next;)

# POWERLINE
/MTFCC=L4020/ {lanes=1; color=65; pattern=1; display_level=128; next;}

# LEGAL / STATISTICAL BOUNDARY
/MTFCC=P0001/ {display_level=0; label_level=0; next;}

# PERENNIAL SHORELINE
/MTFCC=P0002/ {lanes=1; display_level=1240; color=9; fill_color=9; next;}

# INTERMITTENT SHORELINE
/MTFCC=P0003/ {lanes=1; display_level=1240; color=9; fill_color=9; next;}

# NON-VISIBLE BOUNDING EDGE
/MTFCC=P0004/ {lanes=1; display_level=1240; color=8; fill_color=9; next;}

# RAILROAD
/MTFCC=R1011/ {lanes=1; color=8; pattern=1; display_level=128; next;}

# LIMITED ACCESS ROAD
/MTFCC=S1100/ {lanes=4; display_level=2048; color=12; label_level=512; font_size=3; next;}
# SECONDARY ROAD
/MTFCC=S1200/ {lanes=2; display_level=1024; color=8; label_level=256; label_color=8; font_size=2; next;}
# CITY / LOCAL ROAD
/MTFCC=S1400/ {lanes=1; display_level=150; color=8; label_level=32; label_color=8; font_size=2; next;}
# 4WD / OFF-ROAD
/MTFCC=S1500/ {lanes=1; display_level=256; color=4; label_level=32; label_color=8; font_size=1; next;}
# FREEWAY RAMP
/MTFCC=S1630/ {lanes=1; display_level=1024; color=12; label_level=16: font-size=1; next;}
# SERVICE DRIVE
/MTFCC=S1640/ {lanes=1; display_level=256; color=40; label_level=16; font_size=1; next;}
# WALKWAY / TRAIL
/MTFCC=S1710/ {lanes=1; display_level=256; color=4; line=1; label_level=16; font_size=1; next;}
# ALLEY
/MTFCC=S1730/ {lanes=1; display_level=256; color=40; label_level=16; font_size=1; next;}
# PRIVATE ROAD
/MTFCC=S1740/ {lanes=1; display_level=256; color=40; label_level=16; font_size=1; next;}
# PARKING LOT ROAD
/MTFCC=S1780/ {lanes=1; display_level=256; color=40; label_level=16; font_size=1; next;}
# BIKE PATH / TRAIL
/MTFCC=S1820/ {lanes=1; display_level=256; color=4; line=1; label_level=16; font_size=1; next;}

# ----------------------------------------------------------------

# just a demo of the END_RECORD and END rules:
#END_RECORD {name="$name ($key)";}
#END {}

# tgr2007pointlm.dbfawk
#
# Copyright (C) 2003-2009  The Xastir Group
#
# Census.gov 2008 TigerMaps for POINTLM
# Richard Polivka, N6NKO - April, 2008
# Craig Anderson, N6YXK - May, 2008
# Dale Seaburg, KG5LT - March, 2009
#
#
# This dbfawk file is used to map arbitrary dbf data that accompanies
# a shapefile into Xastir canoncical values of:
#   key     - search key
# lanes - width of feature (usually a road but applies to rivers, etc. too)
#   color   - color to draw the road
#   name    - name of the road for labels
#   filled  - whether a polygon is drawn filled or not
#   fill_color - color to fill polygon with
# pattern - line pattern for road, river, etc. (0 - solid; 1 - dash; 2 - double dash)
#   display_level - highest zoom level at which to display the feature
#   label_level - highest zoom level at which to display the label
#   symbol  - 3 char 'TIO': table, ID, overlay
# NOTE: This file format is modeled after awk but is nowhere near awk
#  compatible.
#
# This file is used to map US Census Tiger/Line Shapefiles as available at:
# http://www.census.gov/geo/www/tiger/tgrshp2008/tgrshp2008.html
#

# 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.
# 2007FE = dbfinfo="STATEFP:COUNTYFP:COUNTYNS:POINTID:FULLNAME:MTFCC";
dbfinfo="STATEFP:COUNTYFP:ANSICODE:POINTID:FULLNAME:MTFCC";
#dbffields is which of the above fields we actually want to look at.
# No point reading dbffields that are not looked at further.
dbffields="FULLNAME:MTFCC";
}

# BEGIN_RECORD is called once per dbf record which contains multiple fields.
# Use this rule to re-initialize variables between records.
# use color 11 to highlight stuff that isn't properly mapped.
BEGIN_RECORD {key=""; lanes=1; color=6; fill_color=11; name=""; filled=0; pattern=0; display_level=8192; label_level=32; label_color=8; font_size=0; symbol=""; fill_style=0 }

/^FULLNAME=(.*)$/ {name="$1"; next}
/^MTFCC=C3061/ {display_level=0; next}
/^MTFCC=C3062/ {display_level=0; next}
# item locations
/^MTFCC=C3/ {display_level=512; color=50; next}
# Hospitals
/^MTFCC=K12/ {filled=1; fill_color=12; label_color=12; display_level=256; label_level=128; font_size=12; next}
# Schools
/^MTFCC=K25/ {filled=1; fill_color=5; label_color=5; display_level=256; label_level=64; font_size=10; next}
# Airports
/^MTFCC=K24/ {filled=1; fill_color=13; label_color=13; display_level=256; label_level=128; font_size=12; next}
# buildings
/^MTFCC=K/ {filled=1; fill_color=2; label_color=2; display_level=256; next}
# PLCC
/^MTFCC=L/ {display_level=0; next}
# just a demo of the END_RECORD and END rules:
#END_RECORD {name="$name ($key)";}
#END {}


The layering is as follows:



layer      file
100         ridge radar
1350       arealm
1400       areawater
1000       county
2000       cousub
1500       edges
1600       pointlm

Hope this helps....

73 from 807,

Richard, N6NKO

_______________________________________________
Xastir mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to