3D Printed US Population Map

by fungus amungus in Workshop > 3D Printing

13629 Views, 106 Favorites, 0 Comments

3D Printed US Population Map

IMG_0504.jpg

The United States is a big place and it's hard to have a feeling for where all of the people live. There are hundreds of millions of people after all. So many Americans.

To get a better grasp of this I made a 3D map of the US based on the population density of each county. The more people per square mile, the taller it gets.

Then, to actually feel it, I printed the whole thing up on my 3D printer. Here's how that came to be.

Get the Data

Screen Shot 2017-06-13 at 1.28.16 PM.png

This part was easy. The Census data for 2010 is readily available here. You can get all sorts of information, but all I need for this project are two bits of data per county: it's county code and its population density.

The map in the image here is from the Census site, but I couldn't use it so easily with the color scale and the state lines. It also breaks the counties into just 6 groups. I'm starting from CSV data instead.

Get a Map

Screen Shot 2017-06-13 at 1.28.47 PM.png

Thanks to the hard work of other people this part is easy as well. Just go here to get an SVG file. Each county is identified with its county code.

Convert Population Densities

Screen Shot 2017-06-13 at 12.39.36 PM.png

The final system for the image will only allow a scale from 0 to 255. I still need to have a floor that isn't zero, so the final scale turns out to be from 5 to 255.

What I could do is make the whole thing a linear scale with the max population value convert to 255 and the lowest convert to 5.

The problem with this is New York City. With a density of 66,940 people per square mile (!!!) it blows away the rest of the values and would push many of the counties farther down the scale. So instead I capped the value at 20,409 people per square mile, the value of Queens.

Finally, these numbers are converted to hexadecimal. "FF" here is 255.

You can see the full spreadsheet here.

Convert Values to CSS

Screen Shot 2017-06-13 at 12.41.17 PM.png

With a bit more spreadsheet magic, each of these hexadecimal values can be converted to CSS. The values are repeated so that the number can be assigned to the RGB values.

Apply CSS to SVG

Screen Shot 2017-06-13 at 12.43.52 PM.png
brighter.png

This very dark image is the result. To make it easier to see the second image is a brighter version with more contrast.

I added a 1 pixel blur with CSS. This was to smooth out the borders so the that final shapes are more rounded.

Alaska and Hawaii are in here, but I edited them out since the continental 48 would be enough to get a feeling here.

You can try it yourself here. If you made changes and want to see the results, replace the contents of counties.css with the last column from the previous spreadsheet.

Convert to STL in Fusion 360

Screen Shot 2017-06-13 at 1.26.58 PM.png

For this step, I followed the instructions in JON-A-TRON's Turn a 2D Image Into a 3D Model instructable.

I stopped at step 6 there since the file was large and my computer kept stalling out trying to do the T-Spline conversion.

Downloads

Crop and Stretch

Screen Shot 2017-06-14 at 3.13.14 PM.png

The STL is almost there. There's still the bounding rectangle on the bottom and the heights could be exaggerated. So I used Meshmixer to drop the rectangle, shrink the total size down, and increase the height to 4x.

Downloads

Print It Out

Screen Shot 2017-06-13 at 1.32.32 PM.png

I wanted a slightly faster print time so I dropped a bit more of the bottom of the file and printed it out in PLA. Once again, NYC is a problem with that super tall and skinny spike. I've had OK success with printing it so far.

In the future I might separate NYC from the rest so that I can print it sideways and just glue it on afterwards.