Geo::TigerLine::Record::E - TIGER/Line 2003 Polygon Geographic Entity Codes: Economic Census
use Geo::TigerLine::Record::E; @records = Geo::TigerLine::Record::E->parse_file($fh); @records = Geo::TigerLine::Record::E->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::E->new(\%fields); $record->rt(); $record->version(); $record->file(); $record->cenid(); $record->polyid(); $record->stateec(); $record->countyec(); $record->rs_e1(); $record->rs_e2(); $record->placeec(); $record->rs_e3(); $record->rs_e4(); $record->rs_e5(); $record->commregec(); $record->rs_e6();
This is a class representing record type E of the TIGER/Line 2003 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type E 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->stateec(); $record->stateec($data);
FIPS State Code, 2002 Economic Census.
Expects numeric data of no more than 2 characters. $data cannot be blank and should be left justified.
$data = $record->countyec(); $record->countyec($data);
FIPS County Code, 2002 Economic Census.
Expects numeric data of no more than 3 characters. $data cannot be blank and should be left justified.
$data = $record->rs_e1(); $record->rs_e1($data);
Reserved Space E1.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->rs_e2(); $record->rs_e2($data);
Reserved Space E2.
$data = $record->placeec(); $record->placeec($data);
FIPS Economic Census PlaceCode, 2002 Economic Census.
$data = $record->rs_e3(); $record->rs_e3($data);
Reserved Space E3.
$data = $record->rs_e4(); $record->rs_e4($data);
Reserved Space E4.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->rs_e5(); $record->rs_e5($data);
Reserved Space E5.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->commregec(); $record->commregec($data);
Commercial Region Code, 2002 Economic Census.
Expects numeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->rs_e6(); $record->rs_e6($data);
Reserved Space E6.
Expects alphanumeric data of no more than 17 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 E - Polygon Geographic Entity Codes: Economic Census 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 STATEEC No L N 26 27 2 FIPS State Code, 2002 Economic Census COUNTYEC No L N 28 30 3 FIPS County Code, 2002 Economic Census RS-E1 Yes L N 31 35 5 Reserved Space E1 RS-E2 Yes L N 36 40 5 Reserved Space E2 PLACEEC Yes L N 41 45 5 FIPS Economic Census PlaceCode, 2002 Economic Census RS-E3 Yes L N 46 50 5 Reserved Space E3 RS-E4 Yes L N 51 54 4 Reserved Space E4 RS-E5 Yes L A 55 55 1 Reserved Space E5 COMMREGEC Yes L N 56 56 1 Commercial Region Code, 2002 Economic Census RS-E6 Yes L A 57 73 17 Reserved Space E6
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.