NAME
Geo::TigerLine::Record::A - TIGER/Line 1998 Polygon Geographic Entity Codes
SYNOPSIS
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->state();
$record->county();
$record->cenid();
$record->polyid();
$record->fair();
$record->fmcd();
$record->fpl();
$record->ctbna90();
$record->blk90();
$record->cd106();
$record->cd108();
$record->sdelm();
$record->ua();
$record->sdsec();
$record->sduni();
$record->taz();
$record->ua90();
$record->urbflag();
$record->ctpp();
$record->state90();
$record->coun90();
$record->air90();
DESCRIPTION
This is a class representing record type A of the TIGER/Line 1998 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, its 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. Its OO, so consider sub-classing instead.
Accessors
These are simple get/set accessors for each field of a record generated from the TIGER/Line 1998 data dictionary. They perform some data validation.
- rt
-
$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.
- version
-
$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.
- state
-
$data = $record->state(); $record->state($data);
FIPS State Code for File.
Expects numeric data of no more than 2 characters. $data cannot be blank and should be left justified.
- county
-
$data = $record->county(); $record->county($data);
FIPS County Code for File.
Expects numeric data of no more than 3 characters. $data cannot be blank and should be left justified.
- cenid
-
$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.
- polyid
-
$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.
- fair
-
$data = $record->fair(); $record->fair($data);
FIPS 55 Code (American Indian/Alaska Native Area), 1990.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- fmcd
-
$data = $record->fmcd(); $record->fmcd($data);
FIPS 55 Code (MCD/CCD), 1990.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- fpl
-
$data = $record->fpl(); $record->fpl($data);
FIPS 55 Code (Place/CDP), 1990.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- ctbna90
-
$data = $record->ctbna90(); $record->ctbna90($data);
Census Tract/BNA Code, 1990.
Expects numeric data of no more than 6 characters. $data can be blank and should be left justified.
- blk90
-
$data = $record->blk90(); $record->blk90($data);
Census Block Number, 1990.
Expects alphanumeric data of no more than 4 characters. $data can be blank and should be left justified.
- cd106
-
$data = $record->cd106(); $record->cd106($data);
Congressional District Number, 106th.
Expects numeric data of no more than 2 characters. $data can be blank and should be right justified.
- cd108
-
$data = $record->cd108(); $record->cd108($data);
Congressional District Number, 108th.
Expects numeric data of no more than 2 characters. $data can be blank and should be right justified.
- sdelm
-
$data = $record->sdelm(); $record->sdelm($data);
School District Code, Elementary School.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
- ua
-
$data = $record->ua(); $record->ua($data);
Census Urbanized Area Code, 2000 (not filled).
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- sdsec
-
$data = $record->sdsec(); $record->sdsec($data);
School District Code, Secondary School.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
- sduni
-
$data = $record->sduni(); $record->sduni($data);
School District Code, Unified District.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
- taz
-
$data = $record->taz(); $record->taz($data);
Traffic Analysis Zone Code, 1990.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be left justified.
- ua90
-
$data = $record->ua90(); $record->ua90($data);
Census Urbanized Area Code, 1990.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
- urbflag
-
$data = $record->urbflag(); $record->urbflag($data);
Urban/Rural Indicator, 1990.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
- ctpp
-
$data = $record->ctpp(); $record->ctpp($data);
Census Transportation Planning Package Area Code, 1990.
Expects alphanumeric data of no more than 4 characters. $data can be blank and should be left justified.
- state90
-
$data = $record->state90(); $record->state90($data);
FIPS State Code, 1990.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
- coun90
-
$data = $record->coun90(); $record->coun90($data);
FIPS County Code, 1990.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
- air90
-
$data = $record->air90(); $record->air90($data);
Census American Indian/Alaska Native Area Code, 1990.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
Data dictionary
This is the original TIGER/Line 1998 data dictionary from which this class was generated.
Record Type A - Polygon Geographic Entity Codes
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
STATE No L N 6 7 2 FIPS State Code for File
COUNTY No L N 8 10 3 FIPS County Code for File
CENID No L A 11 15 5 Census File Identification Code
POLYID No R N 16 25 10 Polygon Identification Code
FAIR Yes L N 26 30 5 FIPS 55 Code (American Indian/Alaska Native Area), 1990
FMCD Yes L N 31 35 5 FIPS 55 Code (MCD/CCD), 1990
FPL Yes L N 36 40 5 FIPS 55 Code (Place/CDP), 1990
CTBNA90 Yes L N 41 46 6 Census Tract/BNA Code, 1990
BLK90 Yes L A 47 50 4 Census Block Number, 1990
CD106 Yes R N 51 52 2 Congressional District Number, 106th
CD108 Yes R N 53 54 2 Congressional District Number, 108th
SDELM Yes L A 55 59 5 School District Code, Elementary School
UA Yes L N 60 64 5 Census Urbanized Area Code, 2000 (not filled)
SDSEC Yes L A 65 69 5 School District Code, Secondary School
SDUNI Yes L A 70 74 5 School District Code, Unified District
TAZ Yes L A 75 80 6 Traffic Analysis Zone Code, 1990
UA90 Yes L N 81 84 4 Census Urbanized Area Code, 1990
URBFLAG Yes L A 85 85 1 Urban/Rural Indicator, 1990
CTPP Yes L A 86 89 4 Census Transportation Planning Package Area Code, 1990
STATE90 Yes L N 90 91 2 FIPS State Code, 1990
COUN90 Yes L N 92 94 3 FIPS County Code, 1990
AIR90 Yes L N 95 98 4 Census American Indian/Alaska Native Area Code, 1990
AUTHOR
Michael G Schwern <schwern@pobox.com>