Don't duplicate the join key in JSON tool output

This commit is contained in:
Eric Fischer
2017-10-10 17:51:16 -07:00
parent 894a0acc74
commit 9ebeb47d24
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -655,7 +655,7 @@ $ unzip tl_2010_18157_tabblock10.zip
$ ogr2ogr -f GeoJSON tl_2010_18157_tabblock10.json tl_2010_18157_tabblock10.shp $ ogr2ogr -f GeoJSON tl_2010_18157_tabblock10.json tl_2010_18157_tabblock10.shp
``` ```
Download employment data, and fix name of join key in header Download Indiana employment data, and fix name of join key in header
``` ```
$ curl -L -O https://lehd.ces.census.gov/data/lodes/LODES7/in/wac/in_wac_S000_JT00_2015.csv.gz $ curl -L -O https://lehd.ces.census.gov/data/lodes/LODES7/in/wac/in_wac_S000_JT00_2015.csv.gz
+1 -1
View File
@@ -284,7 +284,7 @@ void join_csv(json_object *j) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
for (size_t i = 0; i < fields.size(); i++) { for (size_t i = 1; i < fields.size(); i++) {
std::string k = header[i]; std::string k = header[i];
std::string v = fields[i]; std::string v = fields[i];
json_type attr_type = JSON_STRING; json_type attr_type = JSON_STRING;