NAME

Geo::TigerLine::Record::5 - TIGER/Line 1998 Complete Chain Feature Identifiers

SYNOPSIS

use Geo::TigerLine::Record::5;

@records = Geo::TigerLine::Record::5->parse_file($fh);
@records = Geo::TigerLine::Record::5->parse_file($fh, \&callback);

$record = Geo::TigerLine::Record::5->new(\%fields);

$record->rt();
$record->state();
$record->county();
$record->feat();
$record->fedirp();
$record->fename();
$record->fetype();
$record->fedirs();

DESCRIPTION

This is a class representing record type 5 of the TIGER/Line 1998 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type 5 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.

state
$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.

county
$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.

feat
$data = $record->feat();
$record->feat($data);

Line Name Identification Number.

Expects numeric data of no more than 8 characters. $data cannot be blank and should be right justified.

fedirp
$data = $record->fedirp();
$record->fedirp($data);

Feature Direction, Prefix.

Expects alphanumeric data of no more than 2 characters. $data can be blank and should be left justified.

fename
$data = $record->fename();
$record->fename($data);

Feature Name.

Expects alphanumeric data of no more than 30 characters. $data can be blank and should be left justified.

fetype
$data = $record->fetype();
$record->fetype($data);

Feature Type.

Expects alphanumeric data of no more than 4 characters. $data can be blank and should be left justified.

fedirs
$data = $record->fedirs();
$record->fedirs($data);

Feature Direction, Suffix.

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 5 - Complete Chain Feature Identifiers

     Field   BV  Fmt  Type  Beg  End  Len  Description
        RT   No    L     A    1    1    1  Record Type
     STATE   No    L     N    2    3    2  FIPS State Code for File
    COUNTY   No    L     N    4    6    3  FIPS County Code for File
      FEAT   No    R     N    7   14    8  Line Name Identification Number
    FEDIRP  Yes    L     A   15   16    2  Feature Direction, Prefix
    FENAME  Yes    L     A   17   46   30  Feature Name
    FETYPE  Yes    L     A   47   50    4  Feature Type
    FEDIRS  Yes    L     A   51   52    2  Feature Direction, Suffix

AUTHOR

Michael G Schwern <schwern@pobox.com>

SEE ALSO

Geo::TigerLine, mk_parsers