Eric A. Zarko > Geo-TigerLine-0.03 > Geo::TigerLine::Record::P

Download:
Geo-TigerLine-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Geo::TigerLine::Record::P - TIGER/Line 2006 Polygon Internal Point

SYNOPSIS ^

  use Geo::TigerLine::Record::P;

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

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

  $record->rt();
  $record->version();
  $record->file();
  $record->cenid();
  $record->polyid();
  $record->polylong();
  $record->polylat();
  $record->water();

DESCRIPTION ^

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

Accessors

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.

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.

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

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

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

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

Polygon Internal Point Longitude.

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

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

Polygon Internal Point Latitude.

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

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

Perennial/Intermittent Water Flag.

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

Data dictionary

This is the original TIGER/Line 2006 data dictionary from which this class was generated.

    Record Type P - Polygon Internal Point
    
    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
    CENID    No   L   A   11   15  5  Census File Identification Code
    POLYID   No   R   N   16   25 10  Polygon Identification Code
    POLYLONG No   R   N   26   35 10  Polygon Internal Point Longitude
    POLYLAT  No   R   N   36   44  9  Polygon Internal Point Latitude
    WATER    Yes  L   N   45   45  1  Perennial/Intermittent Water Flag

AUTHOR ^

Michael G Schwern <schwern@pobox.com>

SEE ALSO ^

Geo::TigerLine, mk_parsers

syntax highlighting: