Geo::TigerLine::Record::U - TIGER/Line 2006 TIGER/Line ID Overpass/Underpass Identification
use Geo::TigerLine::Record::U; @records = Geo::TigerLine::Record::U->parse_file($fh); @records = Geo::TigerLine::Record::U->parse_file($fh, \&callback); $record = Geo::TigerLine::Record::U->new(\%fields); $record->rt(); $record->version(); $record->file(); $record->tzid(); $record->rtsq(); $record->tlidov1(); $record->tlidov2(); $record->tlidun1(); $record->tlidun2(); $record->frlong(); $record->frlat();
This is a class representing record type U of the TIGER/Line 2006 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type U 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 2006 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->tzid(); $record->tzid($data);
TIGER Zero-Cell ID, Permanent Zero-Cell Number.
Expects numeric data of no more than 10 characters. $data cannot be blank and should be right justified.
$data = $record->rtsq(); $record->rtsq($data);
Record Sequence Number.
Expects numeric data of no more than 1 characters. $data cannot be blank and should be right justified.
$data = $record->tlidov1(); $record->tlidov1($data);
TIGER/Line ID, First Overpass 1-Cell Number.
Expects numeric data of no more than 10 characters. $data can be blank and should be right justified.
$data = $record->tlidov2(); $record->tlidov2($data);
TIGER/Line ID, Second Overpass 1-Cell Number.
$data = $record->tlidun1(); $record->tlidun1($data);
TIGER/Line ID, First Underpass 1-Cell Number.
$data = $record->tlidun2(); $record->tlidun2($data);
TIGER/Line ID, Second Underpass 1-Cell Number.
$data = $record->frlong(); $record->frlong($data);
TZID Longitude.
$data = $record->frlat(); $record->frlat($data);
TZID Latitude.
Expects numeric data of no more than 9 characters. $data cannot be blank and should be right justified.
This is the original TIGER/Line 2006 data dictionary from which this class was generated.
Record Type U - TIGER/Line ID Overpass/Underpass Identification 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 TZID No R N 11 20 10 TIGER Zero-Cell ID, Permanent Zero-Cell Number RTSQ No R N 21 21 1 Record Sequence Number TLIDOV1 Yes R N 22 31 10 TIGER/Line ID, First Overpass 1-Cell Number TLIDOV2 Yes R N 32 41 10 TIGER/Line ID, Second Overpass 1-Cell Number TLIDUN1 Yes R N 42 51 10 TIGER/Line ID, First Underpass 1-Cell Number TLIDUN2 Yes R N 52 61 10 TIGER/Line ID, Second Underpass 1-Cell Number FRLONG No R N 62 71 10 TZID Longitude FRLAT No R N 72 80 9 TZID Latitude
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.