- This topic has 6 replies, 3 voices, and was last updated 6 months, 2 weeks ago by Bill Finzer.
-
AuthorPosts
-
travisweiland@gmail.comParticipant
Has anyone found census tracks in a json shape file and loaded it into CODAP with spatial data? I would like to graph some data that is unitized by census track so teachers can explore the data but I am struggling to put all the pieces together. Any help would be greatly appreciated.
May 2, 2024 at 9:08 pm #10480Bill FinzerKeymasterHi Travis,Here is one just for California. I’ve never tried to make one for the whole U.S. It would be very large, of course.Bill
May 2, 2024 at 9:15 pm #10479travisweiland@gmail.comParticipantThank you. That is exactly the type of thing I am trying to do just for NC currently. If I am following what you did in your file it looks like you are have census tracks built into CODAP now that I can just use the lookupbykey function to add to a data table that has a Census Track variable with the numerical census track numbers. Is that correct or did you do some other magic in the background I am missing?
May 2, 2024 at 9:23 pm #10478Bill FinzerKeymasterNo, we don’t have census tract boundaries available, just the boundaries listed in the screenshot of the Variables menu in the formula editor. Plus, you would probably want a lot more than just the boundaries, right? I don’t remember where I got the CA data long ago. Sorry about that.
May 3, 2024 at 5:20 pm #10477Dan DamelinKeymasterHere’s a CODAP doc with NC census tracts.https://codap.concord.org/releases/latest/static/dg/en/cert/index.html#shared=https%3A%2F%2Fcfm-shared.concord.org%2FrPsp6ogNPu0J6ZzzYj0p%2Ffile.jsonTo make this I searched the web for NC census tracts geoJSON, but could not find that. I was able to find shapefiles, which were here.Then I opened this great tool (mapshaper.org) for simplifying and converting between various boundary file types. I uploaded the files that I had downloaded, clicked “simplify” and used the slider to reduce file size, and then “export” to save as geoJSON. Then you can just drag the geoJSON into CODAP and join tables based on one of the identifiers (assuming your data has one of those identifiers for linking).
May 6, 2024 at 4:03 pm #10476travisweiland@gmail.comParticipantThanks Dan that is super helpful. One more quick follow-up question. When I go to reduce the file size to download as a geoJSON is there a ballpark file size you all recommend to work well with CODAP?
May 6, 2024 at 6:22 pm #10475Dan DamelinKeymasterI don’t have a target file size, but smaller is better. What I generally do is move the % slider until I start to see a loss of detail in the borders. It’s amazing how much info can be thrown out and have almost no visual change in the boundary definitions. I’m quite impressed with their algorithm for simplifying shapes.
-
AuthorPosts
- You must be logged in to reply to this topic.