[cairo-commit] roadster/src import_tiger.c,1.25,1.26

Jeff Garrett commit at pdx.freedesktop.org
Sat Sep 8 01:55:48 PDT 2007


Committed by: jgarrett

Update of /cvs/cairo/roadster/src
In directory kemper:/tmp/cvs-serv6729/src

Modified Files:
	import_tiger.c 
Log Message:
	* src/import_tiger.c: Use places instead of primary county subdivisions


Index: import_tiger.c
===================================================================
RCS file: /cvs/cairo/roadster/src/import_tiger.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- import_tiger.c	18 Oct 2005 03:05:25 -0000	1.25
+++ import_tiger.c	8 Sep 2007 08:55:45 -0000	1.26
@@ -593,8 +593,8 @@
 		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 @@
 
 		// 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);



More information about the cairo-commit mailing list