Geo::TigerLine::Record::B - TIGER/Line 2006 Polygon Geographic Entity Codes: Corrections
use Geo::TigerLine::Record::B; @records = Geo::TigerLine::Record::B->parse_file($fh); @records = Geo::TigerLine::Record::B->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::B->new(\%fields); $record->rt(); $record->version(); $record->file(); $record->cenid(); $record->polyid(); $record->statecq(); $record->countycq(); $record->tractcq(); $record->blockcq(); $record->aianhhfpcq(); $record->aianhhcq(); $record->aihhtlicq(); $record->aitscecq(); $record->aitscq(); $record->anrccq(); $record->concitcq(); $record->cousubcq(); $record->submcdcq(); $record->placecq(); $record->rs_b2(); $record->rs_b3(); $record->rs_b1();
This is a class representing record type B of the TIGER/Line 2006 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type B files and turn them into objects.
This is intended as an intermediate format between pulling the raw data out of the simplistic TIGER/Line data files into something more sophisticated (a process you should only have to do once). As such, it's not very fast, but its careful, easy to use and performs some verifications on the data being read.
As this class is autogenerated by mk_parsers, think before you modify this file. It's OO, so consider sub-classing instead.
These are simple get/set accessors for each field of a record generated from the TIGER/Line 2006 data dictionary. They perform some data validation.
$data = $record->rt(); $record->rt($data);
Record Type.
Expects alphanumeric data of no more than 1 characters. $data cannot be blank and should be left justified.
$data = $record->version(); $record->version($data);
Version Number.
Expects numeric data of no more than 4 characters. $data cannot be blank and should be left justified.
$data = $record->file(); $record->file($data);
File Code.
Expects numeric data of no more than 5 characters. $data cannot be blank and should be left justified.
$data = $record->cenid(); $record->cenid($data);
Census File Identification Code.
Expects alphanumeric data of no more than 5 characters. $data cannot be blank and should be left justified.
$data = $record->polyid(); $record->polyid($data);
Polygon Identification Code.
Expects numeric data of no more than 10 characters. $data cannot be blank and should be right justified.
$data = $record->statecq(); $record->statecq($data);
FIPS State Code, 2000 CQR.
Expects numeric data of no more than 2 characters. $data cannot be blank and should be left justified.
$data = $record->countycq(); $record->countycq($data);
FIPS County Code, 2000 CQR.
Expects numeric data of no more than 3 characters. $data cannot be blank and should be left justified.
$data = $record->tractcq(); $record->tractcq($data);
Census Tract, 2000 CQR.
Expects numeric data of no more than 6 characters. $data cannot be blank and should be left justified.
$data = $record->blockcq(); $record->blockcq($data);
Census Block Number, 2000 CQR.
$data = $record->aianhhfpcq(); $record->aianhhfpcq($data);
FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 CQR.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->aianhhcq(); $record->aianhhcq($data);
Census Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 CQR.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->aihhtlicq(); $record->aihhtlicq($data);
American Indian/Hawaiian Home Land Trust Land Indicator, 2000 CQR.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->aitscecq(); $record->aitscecq($data);
Census Code (American Indian Tribal Subdivision), 2000 CQR.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->aitscq(); $record->aitscq($data);
FIPS 55 Code (American Indian Tribal Subdivision), 2000 CQR.
$data = $record->anrccq(); $record->anrccq($data);
FIPS 55 Code (ANRC), 2000 CQR.
$data = $record->concitcq(); $record->concitcq($data);
FIPS 55 Code (Consolidated City), 2000 CQR.
$data = $record->cousubcq(); $record->cousubcq($data);
FIPS 55 Code (County Subdivision), 2000 CQR.
$data = $record->submcdcq(); $record->submcdcq($data);
FIPS 55 Code (Subbarrio), 2000 CQR.
$data = $record->placecq(); $record->placecq($data);
FIPS 55 Code (Incorporated Place), 2000 CQR.
$data = $record->rs_b2(); $record->rs_b2($data);
Reserved Space B2.
$data = $record->rs_b3(); $record->rs_b3($data);
Reserved Space B3.
$data = $record->rs_b1(); $record->rs_b1($data);
Reserved Space B1.
Expects alphanumeric data of no more than 8 characters. $data can be blank and should be left justified.
This is the original TIGER/Line 2006 data dictionary from which this class was generated.
Record Type B - Polygon Geographic Entity Codes: Corrections Field BV Fmt Type Beg End Len Description RT No L A 1 1 1 Record Type VERSION No L N 2 5 4 Version Number FILE No L N 6 10 5 File Code CENID No L A 11 15 5 Census File Identification Code POLYID No R N 16 25 10 Polygon Identification Code STATECQ No L N 26 27 2 FIPS State Code, 2000 CQR COUNTYCQ No L N 28 30 3 FIPS County Code, 2000 CQR TRACTCQ No L N 31 36 6 Census Tract, 2000 CQR BLOCKCQ No L A 37 41 5 Census Block Number, 2000 CQR AIANHHFPCQ Yes L N 42 46 5 FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 CQR AIANHHCQ Yes L N 47 50 4 Census Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 CQR AIHHTLICQ Yes L A 51 51 1 American Indian/Hawaiian Home Land Trust Land Indicator, 2000 CQR AITSCECQ Yes L N 52 54 3 Census Code (American Indian Tribal Subdivision), 2000 CQR AITSCQ Yes L N 55 59 5 FIPS 55 Code (American Indian Tribal Subdivision), 2000 CQR ANRCCQ Yes L N 60 64 5 FIPS 55 Code (ANRC), 2000 CQR CONCITCQ Yes L N 65 69 5 FIPS 55 Code (Consolidated City), 2000 CQR COUSUBCQ No L N 70 74 5 FIPS 55 Code (County Subdivision), 2000 CQR SUBMCDCQ Yes L N 75 79 5 FIPS 55 Code (Subbarrio), 2000 CQR PLACECQ Yes L N 80 84 5 FIPS 55 Code (Incorporated Place), 2000 CQR RS-B2 Yes L N 85 89 5 Reserved Space B2 RS-B3 Yes L A 90 90 1 Reserved Space B3 RS-B1 Yes L A 91 98 8 Reserved Space B1
Michael G Schwern <schwern@pobox.com>
Geo::TigerLine, mk_parsers
To install Geo::TigerLine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::TigerLine
CPAN shell
perl -MCPAN -e shell install Geo::TigerLine
For more information on module installation, please visit the detailed CPAN module installation guide.