diff options
author | Jeff Garrett <jeff@jgarrett.org> | 2007-09-08 03:55:45 +0000 |
---|---|---|
committer | Jeff Garrett <jeff@jgarrett.org> | 2007-09-08 03:55:45 +0000 |
commit | 09e830813e6ca5268f45a2299a09c76b61aff7a1 (patch) | |
tree | 2f22a2b58b1cffeedda4b75476cd3a5afd84181f | |
parent | 3c5a75d7ebfdd8e25609ba37bbcfdf87867aebd7 (diff) |
Use places instead of primary county subdivisions
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/import_tiger.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,9 @@ 2007-09-08 Jeff Garrett <jeff@jgarrett.org> + * src/import_tiger.c: Use places instead of primary county subdivisions + +2007-09-08 Jeff Garrett <jeff@jgarrett.org> + * src/location.c: * src/locationset.c: Remove (deprecated) GMemChunk diff --git a/src/import_tiger.c b/src/import_tiger.c index a3cb1cf..77ef94e 100644 --- a/src/import_tiger.c +++ b/src/import_tiger.c @@ -593,8 +593,8 @@ static gboolean import_tiger_parse_table_1(gchar* pBuffer, gint nLength, GHashTa import_tiger_read_string(&pLine[20-1], TIGER_CHAIN_NAME_LEN, &pRecord->achName[0]); // columns 141-145 and 146-150 are FIPS55 codes which link this road to a city - import_tiger_read_int(&pLine[141-1], TIGER_FIPS55_LEN, &pRecord->nFIPS55Left); - import_tiger_read_int(&pLine[146-1], TIGER_FIPS55_LEN, &pRecord->nFIPS55Right); + import_tiger_read_int(&pLine[161-1], TIGER_FIPS55_LEN, &pRecord->nFIPS55Left); + import_tiger_read_int(&pLine[166-1], TIGER_FIPS55_LEN, &pRecord->nFIPS55Right); // Read suffix name and convert it to an integer gchar achType[5]; @@ -740,7 +740,7 @@ static gboolean import_tiger_parse_table_c(gint8* pBuffer, gint nLength, GHashTa // We only want Entity Type M (??) char chEntityType = pLine[25-1]; - if(chEntityType != 'M') continue; + if(chEntityType != 'P') continue; tiger_record_rtc_t* pRecord; pRecord = g_new0(tiger_record_rtc_t, 1); |