Geo::TigerLine::Record::C - TIGER/Line 1998 Geographic Entity Names
use Geo::TigerLine::Record::C; @records = Geo::TigerLine::Record::C->parse_file($fh); @records = Geo::TigerLine::Record::C->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::C->new(\%fields); $record->rt(); $record->version(); $record->state(); $record->county(); $record->fipsyr(); $record->fips(); $record->fipscc(); $record->pdc(); $record->lasad(); $record->entity(); $record->ma(); $record->sd(); $record->air(); $record->vtd(); $record->ua(); $record->anrc(); $record->census5(); $record->name();
This is a class representing record type C of the TIGER/Line 1998 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type C 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.
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.
$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->state(); $record->state($data);
FIPS State Code.
Expects numeric data of no more than 2 characters. $data can be blank and should be left justified.
$data = $record->county(); $record->county($data);
FIPS County Code.
Expects numeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->fipsyr(); $record->fipsyr($data);
FIPS Code and Name Relationship Applicable Year.
Expects numeric data of no more than 4 characters. $data can be blank and should be left justified.
$data = $record->fips(); $record->fips($data);
FIPS PUB 55-3 Code.
Expects numeric data of no more than 5 characters. $data can be blank and should be left justified.
$data = $record->fipscc(); $record->fipscc($data);
FIPS 55 Class Code.
Expects alphanumeric data of no more than 2 characters. $data can be blank and should be left justified.
$data = $record->pdc(); $record->pdc($data);
Census Place Description Code.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->lasad(); $record->lasad($data);
Legal/Administrative/Statistical Area Description Code.
$data = $record->entity(); $record->entity($data);
Entity Type Code.
$data = $record->ma(); $record->ma($data);
Metropolitan Area Code.
$data = $record->sd(); $record->sd($data);
School District Code.
$data = $record->air(); $record->air($data);
Census American Indian/Alaska Native Area Code.
$data = $record->vtd(); $record->vtd($data);
Voting District Code.
Expects alphanumeric data of no more than 6 characters. $data can be blank and should be right justified.
$data = $record->ua(); $record->ua($data);
Census Urbanized Area Code.
$data = $record->anrc(); $record->anrc($data);
Census Alaska Native Regional Corporation Code.
$data = $record->census5(); $record->census5($data);
Census Use 5.
$data = $record->name(); $record->name($data);
Name of Geographic Area.
Expects alphanumeric data of no more than 58 characters. $data cannot be blank and should be left justified.
This is the original TIGER/Line 1998 data dictionary from which this class was generated.
Record Type C - Geographic Entity Names 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 Yes L N 6 7 2 FIPS State Code COUNTY Yes L N 8 10 3 FIPS County Code FIPSYR Yes L N 11 14 4 FIPS Code and Name Relationship Applicable Year FIPS Yes L N 15 19 5 FIPS PUB 55-3 Code FIPSCC Yes L A 20 21 2 FIPS 55 Class Code PDC Yes L A 22 22 1 Census Place Description Code LASAD Yes L N 23 24 2 Legal/Administrative/Statistical Area Description Code ENTITY No L A 25 25 1 Entity Type Code MA Yes L N 26 29 4 Metropolitan Area Code SD Yes L N 30 34 5 School District Code AIR Yes L N 35 38 4 Census American Indian/Alaska Native Area Code VTD Yes R A 39 44 6 Voting District Code UA Yes L N 45 49 5 Census Urbanized Area Code ANRC Yes L N 50 51 2 Census Alaska Native Regional Corporation Code CENSUS5 Yes L N 52 54 3 Census Use 5 NAME No L A 55 112 58 Name of Geographic Area
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.