Skip to content

Commit b3fa65b

Browse files
authored
Merge pull request #923 from conveyal/census-loader-update
Update Census loader to handle new decade
2 parents 14cbb20 + dcfe1dd commit b3fa65b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/conveyal/data/census/TigerLineSource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void load (ShapeDataStore store) throws Exception {
3434
for (SimpleFeatureIterator it = sfc.features(); it.hasNext();) {
3535
GeobufFeature feat = new GeobufFeature(it.next());
3636
feat.id = null;
37-
feat.numericId = Long.parseLong((String) feat.properties.get("GEOID10"));
37+
feat.numericId = Long.parseLong((String) feat.properties.get("GEOID20"));
3838
feat.properties = new HashMap<>();
3939
store.add(feat);
4040
}

src/test/java/com/conveyal/data/census/IntegrationTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void testAll () throws Exception {
8989
assertTrue(features.containsKey(110010014023009L));
9090

9191
// read the workplace area characteristics csv
92-
InputStream csv = new GZIPInputStream(new FileInputStream(new File(new File(dir, "jobs"), "dc_wac_S000_JT00_2013.csv.gz")));
92+
InputStream csv = new GZIPInputStream(new FileInputStream(new File(new File(dir, "jobs"), "DC_2021_wac.csv.gz")));
9393
reader = new CsvReader(new InputStreamReader(csv));
9494
reader.readHeaders();
9595

@@ -153,7 +153,7 @@ public void testAll () throws Exception {
153153
assertTrue(foundJobsEntry);
154154

155155
// read the rac csv
156-
csv = new GZIPInputStream(new FileInputStream(new File(new File(dir, "workforce"), "dc_rac_S000_JT00_2013.csv.gz")));
156+
csv = new GZIPInputStream(new FileInputStream(new File(new File(dir, "workforce"), "DC_2021_rac.csv.gz")));
157157
reader = new CsvReader(new InputStreamReader(csv));
158158

159159
reader.readHeaders();
Binary file not shown.

0 commit comments

Comments
 (0)