NAME

Geo::TigerLine::Record::C - TIGER/Line 1998 Geographic Entity Names

SYNOPSIS

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();

DESCRIPTION

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.

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.

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

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

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

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

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

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

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

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

Legal/Administrative/Statistical Area Description Code.

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

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

Entity Type Code.

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

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

Metropolitan Area Code.

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

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

School District Code.

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

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

Census American Indian/Alaska Native Area Code.

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

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

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

Census Urbanized Area Code.

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

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

Census Alaska Native Regional Corporation Code.

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

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

Census Use 5.

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

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

Data dictionary

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

AUTHOR

Michael G Schwern <schwern@pobox.com>

SEE ALSO

Geo::TigerLine, mk_parsers