summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garrett <jeff@jgarrett.org>2007-09-08 03:55:45 +0000
committerJeff Garrett <jeff@jgarrett.org>2007-09-08 03:55:45 +0000
commit09e830813e6ca5268f45a2299a09c76b61aff7a1 (patch)
tree2f22a2b58b1cffeedda4b75476cd3a5afd84181f
parent3c5a75d7ebfdd8e25609ba37bbcfdf87867aebd7 (diff)
Use places instead of primary county subdivisions
-rw-r--r--ChangeLog4
-rw-r--r--src/import_tiger.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 300f32f..688cd19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);