NAME
Geo::TigerLine::Record::S - TIGER/Line 1998 Polygon Additional Geographic Entity Codes
SYNOPSIS
use Geo::TigerLine::Record::S;
@records = Geo::TigerLine::Record::S->parse_file($fh);
@records = Geo::TigerLine::Record::S->parse_file($fh, \&callback);
$record = Geo::TigerLine::Record::S->new(\%fields);
$record->rt();
$record->version();
$record->state();
$record->county();
$record->cenid();
$record->polyid();
$record->water();
$record->cmsa();
$record->ma();
$record->fair();
$record->air();
$record->trust();
$record->anrc();
$record->state();
$record->county();
$record->fccity();
$record->fmcd();
$record->fsmcd();
$record->fpl();
$record->ct();
$record->blk();
$record->census6();
$record->cdcu();
$record->stsenate();
$record->sthouse();
$record->census7();
$record->rs7();
$record->vtd();
$record->statecol();
$record->councol();
$record->blkcol();
$record->blksufcol();
$record->zcta();
$record->rs8();
DESCRIPTION
This is a class representing record type S of the TIGER/Line 1998 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type S 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, Current.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
- county
-
$data = $record->county(); $record->county($data);
FIPS County Code, Current.
Expects numeric data of no more than 3 characters. $data can 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.
- water
-
$data = $record->water(); $record->water($data);
Water Flag.
Expects numeric data of no more than 1 characters. $data can be blank and should be left justified.
- cmsa
-
$data = $record->cmsa(); $record->cmsa($data);
FIPS Consolidated Metropolitan Statistical Area Code, Current.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
- ma
-
$data = $record->ma(); $record->ma($data);
FIPS Metropolitan Area Code, Current.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
- fair
-
$data = $record->fair(); $record->fair($data);
FIPS 55 Code (American Indian/Alaska Native Area), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- air
-
$data = $record->air(); $record->air($data);
Census American Indian/Alaska Native Area Code, Current.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
- trust
-
$data = $record->trust(); $record->trust($data);
American Indian Trust Land Flag, Current.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
- anrc
-
$data = $record->anrc(); $record->anrc($data);
Census Alaska Native Regional Corporation Code, Current.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
- state
-
$data = $record->state(); $record->state($data);
FIPS State Code, Current.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
- county
-
$data = $record->county(); $record->county($data);
FIPS County Code, Current.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
- fccity
-
$data = $record->fccity(); $record->fccity($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.
- fmcd
-
$data = $record->fmcd(); $record->fmcd($data);
FIPS 55 Code (MCD/CCD), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- fsmcd
-
$data = $record->fsmcd(); $record->fsmcd($data);
FIPS 55 Code (Sub-MCD), Current.
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), Current.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
- ct
-
$data = $record->ct(); $record->ct($data);
Census Tract Code, 1990.
Expects numeric data of no more than 6 characters. $data can be blank and should be left justified.
- blk
-
$data = $record->blk(); $record->blk($data);
Census Block Number, 1990.
Expects alphanumeric data of no more than 4 characters. $data can be blank and should be left justified.
- census6
-
$data = $record->census6(); $record->census6($data);
Census Use 6.
Expects numeric data of no more than 1 characters. $data can be blank and should be right justified.
- cdcu
-
$data = $record->cdcu(); $record->cdcu($data);
Congressional District Code, Current.
Expects numeric data of no more than 2 characters. $data can be blank and should be right justified.
- stsenate
-
$data = $record->stsenate(); $record->stsenate($data);
State Senate District Code (not filled).
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be right justified.
- sthouse
-
$data = $record->sthouse(); $record->sthouse($data);
State House District Code (not filled).
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be right justified.
- census7
-
$data = $record->census7(); $record->census7($data);
Census Use 7.
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
- rs7
-
$data = $record->rs7(); $record->rs7($data);
Reserved Space 7.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
- vtd
-
$data = $record->vtd(); $record->vtd($data);
Voting District Code (not filled).
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be left justified.
- statecol
-
$data = $record->statecol(); $record->statecol($data);
Census 2000 Collection State FIPS Code.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
- councol
-
$data = $record->councol(); $record->councol($data);
Census 2000 Collection County FIPS Code.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
- blkcol
-
$data = $record->blkcol(); $record->blkcol($data);
Census 2000 Collection Block Number.
Expects numeric data of no more than 5 characters. $data can be blank and should be right justified.
- blksufcol
-
$data = $record->blksufcol(); $record->blksufcol($data);
Census 2000 Collection Block Number Suffix.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
- zcta
-
$data = $record->zcta(); $record->zcta($data);
ZIP Code ® Tabulation Area, 2000 (not filled).
Expects alphanumeric data of no more than 5 characters. $data can be blank and should be left justified.
- rs8
-
$data = $record->rs8(); $record->rs8($data);
Reserved Space 8.
Expects alphanumeric data of no more than 2 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 S - Polygon Additional 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
WATER Yes L N 26 26 1 Water Flag
CMSA Yes L N 27 30 4 FIPS Consolidated Metropolitan Statistical Area Code, Current
MA Yes L N 31 34 4 FIPS Metropolitan Area Code, Current
FAIR Yes L N 35 39 5 FIPS 55 Code (American Indian/Alaska Native Area), Current
AIR Yes L N 40 43 4 Census American Indian/Alaska Native Area Code, Current
TRUST Yes L A 44 44 1 American Indian Trust Land Flag, Current
ANRC Yes L N 45 46 2 Census Alaska Native Regional Corporation Code, Current
STATE Yes L N 47 48 2 FIPS State Code, Current
COUNTY Yes L N 49 51 3 FIPS County Code, Current
FCCITY Yes L N 52 56 5 FIPS 55 Code (Consolidated City), Current
FMCD Yes L N 57 61 5 FIPS 55 Code (MCD/CCD), Current
FSMCD Yes L N 62 66 5 FIPS 55 Code (Sub-MCD), Current
FPL Yes L N 67 71 5 FIPS 55 Code (Place), Current
CT Yes L N 72 77 6 Census Tract Code, 1990
BLK Yes L A 78 81 4 Census Block Number, 1990
CENSUS6 Yes R N 82 82 1 Census Use 6
CDCU Yes R N 83 84 2 Congressional District Code, Current
STSENATE Yes R A 85 87 3 State Senate District Code (not filled)
STHOUSE Yes R A 88 90 3 State House District Code (not filled)
CENSUS7 Yes L A 91 95 5 Census Use 7
RS7 Yes L A 96 96 1 Reserved Space 7
VTD Yes L A 97 102 6 Voting District Code (not filled)
STATECOL Yes L N 103 104 2 Census 2000 Collection State FIPS Code
COUNCOL Yes L N 105 107 3 Census 2000 Collection County FIPS Code
BLKCOL Yes R N 108 112 5 Census 2000 Collection Block Number
BLKSUFCOL Yes L A 113 113 1 Census 2000 Collection Block Number Suffix
ZCTA Yes L A 114 118 5 ZIP Code ® Tabulation Area, 2000 (not filled)
RS8 Yes L A 119 120 2 Reserved Space 8
AUTHOR
Michael G Schwern <schwern@pobox.com>
SEE ALSO
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 862:
Non-ASCII character seen before =encoding in '®'. Assuming CP1252