[GRASSLIST:6194] RE: labels and TIGER line data?

John Gillette JGillette at rfmd.com
Wed May 7 09:06:15 EDT 2003


These commands do not label the lines imported from tiger files.
In other words, they do not create a dig_cats file.  You will have
to do this manually.

The v.in.tig.basic should have created lines that have an attribute
value equal to the TLID of the line. What is needed is a file relating
the TLID to the label.

awk 'substr($0,56,1) == "H"{print substr($0,6,10) ":"  substr($0,20,30) }' <path to tiger1 file> > <name of temp file>

This should create a file of the form:

1360147527:Mississippi River

Add a header at the top:
# 99 categories


0.00 0.00 0.00 0.00

The number 99 above should be replaced by the actual number 
of categories.  I don't know how critical this is. 
Create this file in the dig_cats directory
of your map with the same name as the map and run v.support.

Note, you said you had hydrography.  The above awk program picks out
CFCC codes with "H" which is hydrography.

John

> 
> Greetings,
> 
> I've been attempting to import TIGER line data with labels.  Following
> Dr. James Hinthorne's tutorial
> (http://www.regis.berkeley.edu/census/censusGrass2.html), I've created
> hydrography maps from TIGER line data using several methods:
> 
> 	1) v.in.tig.basic without the -t (topography) option
> 	2) v.in.tig.basic with the -t option
> 	3) v.in.tig.lndmk
> 
> But none of the features in these maps have labels.  I've 
> unsuccessfully
> tried running v.support in an attempt to create the necessary dig_cats
> file.  Running d.what.vect results in "<not labeled>" after a category
> report, and running v.out.ascii for each of the maps confirms that the
> "OTHER INFO:" line does not specify a dig_cats file (the line instead
> specifies: "Map of TIGER lines").  
> 
> Looking at the input data, the TIGER record type 1 file contains names
> of rivers and streams in the FENAME (i.e., feature name) 
> field.  How do
> I get those feature names to be line labels in GRASS?
> 
> Thanks,
> Greg
> 
> 




More information about the grass-user mailing list