Geo::TigerLine::Record::9 - TIGER/Line 1998 Key Geographic Location Features
use Geo::TigerLine::Record::9; @records = Geo::TigerLine::Record::9->parse_file($fh); @records = Geo::TigerLine::Record::9->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::9->new(\%fields); $record->rt(); $record->version(); $record->state(); $record->county(); $record->cenid(); $record->polyid(); $record->source(); $record->cfcc(); $record->kglname(); $record->kgladd(); $record->kglzip(); $record->kglzip4(); $record->feat(); $record->filler();
This is a class representing record type 9 of the TIGER/Line 1998 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type 9 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 for File.
Expects numeric data of no more than 2 characters. $data cannot be blank and should be left justified.
$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.
$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->source(); $record->source($data);
Source or First Source Code to Update.
Expects alphanumeric data of no more than 1 characters. $data can be blank and should be left justified.
$data = $record->cfcc(); $record->cfcc($data);
Census Feature Class Code.
Expects alphanumeric data of no more than 3 characters. $data can be blank and should be left justified.
$data = $record->kglname(); $record->kglname($data);
Key Geographic Location Name.
Expects alphanumeric data of no more than 30 characters. $data can be blank and should be left justified.
$data = $record->kgladd(); $record->kgladd($data);
Key Geographic Location Address.
Expects alphanumeric data of no more than 11 characters. $data cannot be blank and should be right justified.
$data = $record->kglzip(); $record->kglzip($data);
Key Geographic Location ZIP Code.
Expects numeric data of no more than 5 characters. $data cannot be blank and should be left justified.
$data = $record->kglzip4(); $record->kglzip4($data);
+4 Postal Add-On Code for KGL.
$data = $record->feat(); $record->feat($data);
Line Name Identification Number.
Expects numeric data of no more than 8 characters. $data can be blank and should be right justified.
$data = $record->filler(); $record->filler($data);
Filler (to make even character count).
This is the original TIGER/Line 1998 data dictionary from which this class was generated.
Record Type 9 - Key Geographic Location Features 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 SOURCE Yes L A 26 26 1 Source or First Source Code to Update CFCC Yes L A 27 29 3 Census Feature Class Code KGLNAME Yes L A 30 59 30 Key Geographic Location Name KGLADD No* R A 60 70 11 Key Geographic Location Address KGLZIP No* L N 71 75 5 Key Geographic Location ZIP Code KGLZIP4 No* L N 76 79 4 +4 Postal Add-On Code for KGL FEAT Yes R N 80 87 8 Line Name Identification Number FILLER Yes L A 88 88 1 Filler (to make even character count)
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.