
Geo::TigerLine::Record::A - TIGER/Line 2003 Polygon Geographic Entity Codes: Current Geography

use Geo::TigerLine::Record::A; @records = Geo::TigerLine::Record::A->parse_file($fh); @records = Geo::TigerLine::Record::A->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::A->new(\%fields); $record->rt(); $record->version(); $record->file(); $record->cenid(); $record->polyid(); $record->statecu(); $record->countycu(); $record->tract(); $record->block(); $record->blocksufcu(); $record->rs_a1(); $record->aianhhfpcu(); $record->aianhhcu(); $record->aihhtlicu(); $record->anrccu(); $record->aitscecu(); $record->aitscu(); $record->concitcu(); $record->cousubcu(); $record->submcdcu(); $record->placecu(); $record->sdelmcu(); $record->sdseccu(); $record->sdunicu(); $record->rs_a20(); $record->rs_a21(); $record->rs_a22(); $record->cdcu(); $record->zcta5cu(); $record->zcta3cu(); $record->rs_a4(); $record->rs_a5(); $record->rs_a6(); $record->rs_a7(); $record->rs_a8(); $record->rs_a9(); $record->cbsacu(); $record->csacu(); $record->nectacu(); $record->cnectacu(); $record->metdivcu(); $record->nectadivcu(); $record->rs_a14(); $record->rs_a15(); $record->rs_a16(); $record->rs_a17(); $record->rs_a18(); $record->rs_a19();

This is a class representing record type A of the TIGER/Line 2003 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type A 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 2003 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->statecu();
$record->statecu($data);
FIPS State Code, Current.
Expects numeric data of no more than 2 characters. $data cannot be blank and should be left justified.
$data = $record->countycu();
$record->countycu($data);
FIPS County Code, Current.
Expects numeric data of no more than 3 characters. $data cannot be blank and should be left justified.
$data = $record->tract();
$record->tract($data);
Census Tract, 2000.
Expects numeric data of no more than 6 characters. $data cannot be blank and should be left justified.
$data = $record->block();
$record->block($data);
Census Block Number, 2000.
Expects numeric data of no more than 4 characters. $data cannot be blank and should be left justified.
$data = $record->blocksufcu();
$record->blocksufcu($data);
Current Suffix for Census 2000 Block Number.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->rs_a1();
$record->rs_a1($data);
Reserved Space A1.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->aianhhfpcu();
$record->aianhhfpcu($data);
FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->aianhhcu();
$record->aianhhcu($data);
Census Code (American Indian/Alaska Native Area/Hawaiian Home Land), Current.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->aihhtlicu();
$record->aihhtlicu($data);
American Indian/Hawaiian Home Land Trust Land Indicator, Current.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->anrccu();
$record->anrccu($data);
FIPS 55 Code (ANRC), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->aitscecu();
$record->aitscecu($data);
Census Code (American Indian Tribal Subdivision), Current.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->aitscu();
$record->aitscu($data);
FIPS 55 Code (American Indian Tribal Subdivision), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->concitcu();
$record->concitcu($data);
FIPS 55 Code (Consolidated City), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->cousubcu();
$record->cousubcu($data);
FIPS 55 Code (County Subdivision), Current.
Expects numeric data of no more than 5 characters. $data cannot be blank and should be left justified.
$data = $record->submcdcu();
$record->submcdcu($data);
FIPS 55 Code (Subbarrio), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->placecu();
$record->placecu($data);
FIPS 55 Code (Incorporated Place), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->sdelmcu();
$record->sdelmcu($data);
Elementary School District Code, Current.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->sdseccu();
$record->sdseccu($data);
Secondary School District Code, Current.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->sdunicu();
$record->sdunicu($data);
Unified School District Code, Current.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->rs_a20();
$record->rs_a20($data);
Reserved Space A20.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->rs_a21();
$record->rs_a21($data);
Reserved Space A21.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->rs_a22();
$record->rs_a22($data);
Reserved Space A22.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->cdcu();
$record->cdcu($data);
Congressional District Code, Current (108th).
Expects numeric data of no more than 2 characters. $data can be blank and should be right justified.
$data = $record->zcta5cu();
$record->zcta5cu($data);
5-Digit ZIP Code Tabulation Area, current.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->zcta3cu();
$record->zcta3cu($data);
3-Digit ZIP Code Tabulation Area, current.
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be right justified.
$data = $record->rs_a4();
$record->rs_a4($data);
Reserved Space A4.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be right justified.
$data = $record->rs_a5();
$record->rs_a5($data);
Reserved Space A5.
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be right justified.
$data = $record->rs_a6();
$record->rs_a6($data);
Reserved Space A6.
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be right justified.
$data = $record->rs_a7();
$record->rs_a7($data);
Reserved Space A7.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be right justified.
$data = $record->rs_a8();
$record->rs_a8($data);
Reserved Space A8.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be right justified.
$data = $record->rs_a9();
$record->rs_a9($data);
Reserved Space A9.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be left justified.
$data = $record->cbsacu();
$record->cbsacu($data);
FIPS Metropolitan Statistical Area/ Micropolitan Statistical Area Code, Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->csacu();
$record->csacu($data);
FIPS Combined Statistical Area Code, Current.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->nectacu();
$record->nectacu($data);
FIPS New England City and Town Area Code, Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->cnectacu();
$record->cnectacu($data);
FIPS Combined New England City and Town Area Code, Current.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->metdivcu();
$record->metdivcu($data);
FIPS Metropolitan Division Code, Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->nectadivcu();
$record->nectadivcu($data);
FIPS New England City and Town Area Division Code, Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->rs_a14();
$record->rs_a14($data);
Reserved Space A14.
Expects alphanumeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->rs_a15();
$record->rs_a15($data);
Reserved Space A15.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->rs_a16();
$record->rs_a16($data);
Reserved Space A16.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->rs_a17();
$record->rs_a17($data);
Reserved Space A17.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be left justified.
$data = $record->rs_a18();
$record->rs_a18($data);
Reserved Space A18.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be left justified.
$data = $record->rs_a19();
$record->rs_a19($data);
Reserved Space A19.
Expects alphanumeric data of no more than 11 characters. $data can be blank and should be left justified.
This is the original TIGER/Line 2003 data dictionary from which this class was generated.
Record Type A - Polygon Geographic Entity Codes: Current Geography
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
STATECU No L N 26 27 2 FIPS State Code, Current
COUNTYCU No L N 28 30 3 FIPS County Code, Current
TRACT No L N 31 36 6 Census Tract, 2000
BLOCK No L N 37 40 4 Census Block Number, 2000
BLOCKSUFCU Yes L A 41 41 1 Current Suffix for Census 2000 Block Number
RS-A1 Yes L A 42 42 1 Reserved Space A1
AIANHHFPCU Yes L N 43 47 5 FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), Current
AIANHHCU Yes L N 48 51 4 Census Code (American Indian/Alaska Native Area/Hawaiian Home Land), Current
AIHHTLICU Yes L A 52 52 1 American Indian/Hawaiian Home Land Trust Land Indicator, Current
ANRCCU Yes L N 53 57 5 FIPS 55 Code (ANRC), Current
AITSCECU Yes L N 58 60 3 Census Code (American Indian Tribal Subdivision), Current
AITSCU Yes L N 61 65 5 FIPS 55 Code (American Indian Tribal Subdivision), Current
CONCITCU Yes L N 66 70 5 FIPS 55 Code (Consolidated City), Current
COUSUBCU No L N 71 75 5 FIPS 55 Code (County Subdivision), Current
SUBMCDCU Yes L N 76 80 5 FIPS 55 Code (Subbarrio), Current
PLACECU Yes L N 81 85 5 FIPS 55 Code (Incorporated Place), Current
SDELMCU Yes L A 86 90 5 Elementary School District Code, Current
SDSECCU Yes L A 91 95 5 Secondary School District Code, Current
SDUNICU Yes L A 96 100 5 Unified School District Code, Current
RS-A20 Yes L N 101 104 4 Reserved Space A20
RS-A21 Yes L N 105 108 4 Reserved Space A21
RS-A22 Yes L N 109 112 4 Reserved Space A22
CDCU Yes R N 113 114 2 Congressional District Code, Current (108th)
ZCTA5CU Yes L A 115 119 5 5-Digit ZIP Code Tabulation Area, current
ZCTA3CU Yes R A 120 122 3 3-Digit ZIP Code Tabulation Area, current
RS-A4 Yes R A 123 128 6 Reserved Space A4
RS-A5 Yes R A 129 131 3 Reserved Space A5
RS-A6 Yes R A 132 134 3 Reserved Space A6
RS-A7 Yes R A 135 139 5 Reserved Space A7
RS-A8 Yes R A 140 145 6 Reserved Space A8
RS-A9 Yes L A 146 151 6 Reserved Space A9
CBSACU Yes L N 152 156 5 FIPS Metropolitan Statistical Area/ Micropolitan Statistical Area Code, Current
CSACU Yes L N 157 159 3 FIPS Combined Statistical Area Code, Current
NECTACU Yes L N 160 164 5 FIPS New England City and Town Area Code, Current
CNECTACU Yes L N 165 167 3 FIPS Combined New England City and Town Area Code, Current
METDIVCU Yes L N 168 172 5 FIPS Metropolitan Division Code, Current
NECTADIVCU Yes L N 173 177 5 FIPS New England City and Town Area Division Code, Current
RS-A14 Yes L A 178 181 4 Reserved Space A14
RS-A15 Yes L A 182 186 5 Reserved Space A15
RS-A16 Yes L A 187 187 1 Reserved Space A16
RS-A17 Yes L A 188 193 6 Reserved Space A17
RS-A18 Yes L A 194 199 6 Reserved Space A18
RS-A19 Yes L A 200 210 11 Reserved Space A19

Michael G Schwern <schwern@pobox.com>
