The first challenge you must face is parsing your

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: er fields that occupy their full width run up against the adjacent fields. The first challenge you must face is parsing your input data set. The TIGER data provides several types of records. As extensions, you may try to parse several of these record types and incorporate them into your output tiles. At minimum, you must parse the first two record types. These are: 1 - Complete chain basic data (line data) 2 - Complete chain shape coordinates (polygon data) The classes protocol.TigerRecordType1 and protocol.TigerRecordType2 describe the fields of these two record types that we are interested in. We have provided you with the data fields; it is your job to write the readFields() and write() methods, and write the parser which turns a textual record into one of these objects. Below is reproduced the pages from the TIGER data dictionary, which defines the records precisely: Record Type 1 - Complete Field BV Fmt Type RT No L A VERSION No L N TLID No R N Chain Basic Data Record Beg End Len Description 1 1 1 Record Type 2 5 4 Version Number 6 15 10 TIGER/Line(R) ID, Permanent 1-Cell Number SIDE1 Yes R N 16 16 1 Single-Side Source Code SOURCE Yes L A 17 17 1 Linear Segment Source Code FEDIRP Yes L A 18 19 2 Feature Direction, Prefix FENAME Yes L A 20 49 30 Feature Name FETYPE Yes L A 50 53 4 Feature Type FEDIRS Yes L A 54 55 2 Feature Direction, Suffix CFCC No L A 56 58 3 Census Feature Class Code FRADDL Yes R A 59 69 11 Start Address, Left TOADDL Yes R A 70 80 11 End Address, Left FRADDR Yes R A 81 91 11 Start Address, Right TOADDR Yes R A 92 102 11 End Address, Right FRIADDL Yes L A 103 103 1 Start Imputed Address Flag, Left TOIADDL Yes L A 104 104 1 End Imputed Address Flag, Left FRIADDR Yes L A 105 105 1 Start Imputed Address Flag, Right TOIADDR Yes L A 106 106 1 End Imputed Address Flag, Right ZIPL Yes L N 107 111 5 ZIP Code(R), Left ZIPR Yes L N 112 116 5 ZIP Code(R), Right AIANHHFPL Yes L N 117 121 5 FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 Left AIANHHFPR Yes L N 122 126 5 FIPS 55 Code (American Indian/Alaska Native Area/Hawaiian Home Land), 2000 Right AIHHTLIL Yes L A 127 127 1 American Indian/Hawaiian Home Land Trust Land Indicator, 2000 Left AIHHTLIR Yes L A 128 128 1 American Indian/Hawaiian Home Land Trust Land Indicator, 2000 Right CENSUS1 Yes L A 129 129 1 Census Use 1 CENSUS2 Yes L A 130 130 1 Census Use 2 STATEL Yes L N 131...
View Full Document

This homework help was uploaded on 04/02/2014 for the course CSE 490 taught by Professor Staff during the Fall '08 term at University of Washington.

Ask a homework question - tutors are online