I am facing an issue with binding data from a csv to a topojson file where the data from the csv is not being added to the properties of the topojson objects. You can find the csv file here, and here is a snippet from it:
GEO.id,GEO.id2,GEO.display-label,HC01_EST_VC21,HC01_EST_VC22,HC01_EST_VC23
Id,Id2,Geography,Total; Estimate; Population 18 years and over,Total; Estimate; Population 18 years and over - Enrolled in college or graduate school %,Total; Estimate; Population 18 years and over - Enrolled in college or graduate school #
1400000US06001400100,6001400100,"Census Tract 4001, Alameda County, California",3056,25.5,779
1400000US06001400200,6001400200,"Census Tract 4002, Alameda County, California",1619,4.3,70
You can also access the topojson I am trying to bind the data to here, and a snippet of it:
{"type":"Topology","objects":{"cb_2015_06_tract_500k":{"type":"GeometryCollection","bbox":[-124.409591,32.534155999999996,-114.131211,42.009518],"geometries":[
{"type":"Polygon","properties":{"STATEFP":"06","COUNTYFP":"001","TRACTCE":"400600","AFFGEOID":"1400000US06001400600","GEOID":"06001400600","NAME":"4006","LSAD":"CT","ALAND":297856,"AWATER":0},"arcs":[[0,1,2,3,4]]},
{"type":"Polygon","properties":{"STATEFP":"06","COUNTYFP":"001","TRACTCE":"400900","AFFGEOID":"1400000US06001400900","GEOID":"06001400900","NAME":"4009","LSAD":"CT","ALAND":420877,"AWATER":0},"arcs":[[5,6,7,8]]},
I have tried using the command
topojson -o out.json -e education_dataset.csv --id-property=GEOID,GEO.id2 -p population=+HC01_EST_VC01 -- ca-tracts.json
to bind the column HC01_EST_VC01
from the csv to the population
property in the topojson without success. I also attempted the command topojson -o out.json -e education_dataset.csv --id-property=AFFGEOID,GEO.id -p population=+HC01_EST_VC01 -- ca-tracts.json
as the topojson has both AFFGEOID
and GEOID
, corresponding to columns in the csv GEO.id
and GEO.id2
, respectively. Any assistance on this matter would be greatly appreciated.