blankblank blank




Convert TIGER Census Shapefiles (And General Shapefiles As Well) Into Thematic Google Earth KML Files



Bruce Ralston of the University of Tennessee has previously released several US Census TIGER data tools that I’ve posted about in the past. TGR2SHP converts TIGER files into shapefile format, while TGR2KML converts TIGER polygon files (like legislative districts and county subdivisions) into basic KML files for viewing in Google Earth. Both of these tools only work with the older pre-2007 TIGER format, which is no longer in use; the Census Bureau now issues all this TIGER data in standard shapefile format. But Bruce Ralston has just released a new tool called AFF Mapper that goes a step beyond his previous ones: it can convert TIGER shapefile data into KML format, link it to tabular American Fact Finder data (AFF) from the US Census, and plot this census data thematically. But unlike the previous TIGER tools, this one is a general-purpose one; it can convert any shapefile – point, line or polygon – into a thematic or unique value KML file, with the option of using thematic data from a linked external table. The only limitation is that the shapefile must be in geographic coordinates (lat/long), WGS84 datum, Google Earth’s native coordinate system.

I won’t go through the process with Census data; there’s an excellent PDF manual that describes the process of creating maps like this one (from the manual):

tenn

But I’ll run through a sample general shapefile to KML conversion using this tool. I have an Arizona soils shapefile in lat/long/WGS84:

aff1

The shapefile’s attribute table is browseable, so I can select the desired attribute to plot by. I don’t have a separate data table to join, but you would use the boxes at left to select the common variable to use for joining the two sets of data. Click on Render to choose the attribute variable you want to plot:

featurerendering

In this case, I’m plotting by a unique alphameric attribute value, but with numerical values, you could have color intervals corresponding to numerical intervals. Clicking on a color brings up a standard Windows color picker, so that you can set the colors to whatever you want (can’t save the settings, though).

After clicking OK, back in the main screen, you choose the output KML file name and location, as well as the label that will be assigned to push-pin centroids in the middle of each polygon. Once you do that, the “Go” button is enabled:

final

Click Go, and the KML file is created – the program is faster than any other shapefile to KML converter I’ve ever used. Open the file in Google Earth:

soils

Click on the link in the Places pane for this file with the name of the label field (FULLID in this case), and a legend pops up on-screen in Google Earth:

legend

There’s also a subfolder for the centroid pushpins; enable those and the view might get crowded:

pushpins

But they’re useful because if you click on one, you get the full attribute data set for that shape:

popup

Here’s an example from the manual of a point shapefile plotting cities in Mexico, with size and color varying depending on population:

mexico

I’m not going to completely give up my previous free shapefile to KML converter, SHP2KML – it lets you use UTM shapefiles, does datum conversions, and has some formatting features that AFF Mapper doesn’t have, particularly for the pushpins. But for most applications, I think this is my new converter of choice.

Via All Points Blog.

Other posts in the Google Earth Data Tools series

  1. KML Editors
  2. Diagramming In Google Maps And Google Earth With Smoot
  3. Plotting Data In Google Earth Using GE-Graph
  4. Drawing Grids, Paths And Polygons In Google Earth Using GE-Path
  5. Online Google Earth Utilities For Buffering And Area Calculations
  6. Easy Display Of Thematic Data In Google Maps And Google Earth
  7. Using GIF/PNG Transparency In Displaying Raster Graphics In Google Earth
  8. Adding Vector Graphic Objects To Google Earth
  9. Animated GIFs In Google Earth
  10. Creating A Network KML Link To A Google Spreadsheet
  11. LIDAR Tools
  12. EarthPlot Software Tools For Google Earth
  13. Geographic Time Animations
  14. Convert TIGER Polygons To KML Files
  15. Putting Time Data Into A KML File
  16. Using The KML Time Embedder To Stamp Time Data Into A Google Earth File
  17. Using The KML Time Embedder, Concluded
  18. KML Time Embedder Improved With Hour-Minute-Second Ability
  19. Grid Creation And Path/Polygon Measurements: Two New Online KML Tools
  20. Google Earth PhotoOverlay Tool
  21. KML Random Placemark Generator
  22. Update For Online Google Earth Utilities
  23. KML Time Code Utility
  24. Screen Overlays In Google Earth
  25. The KML Screen Overlay Maker Utility
  26. KML Screen Overlay Maker Utility, Concluded
  27. KML Circle Generator
  28. Creating Google Earth Screen Overlays With EarthPaint
  29. Text Editor With KML Validation
  30. Online Spreadsheet To KML Converter
  31. Version 2.0 Of Google’s Online KML Spreadsheet Mapper Tool Released
  32. Creating Google Earth Ground Overlays From Georeferenced Images
  33. Google Earth Ground Overlays With GIF Transparency
  34. Creating "Transparent" Topo Map Overlays For Google Earth
  35. Using Google Earth Ground Overlays To Display Shapefile Data
  36. Converting 3D Objects Into Google Earth Format
  37. Thematic Mapping In Google Earth
  38. An Online KML Validator

Looking for something else? Enter some keywords below, then click "Search".
"This site" searches Free Geography Tools; "Web" searches the Internet using Google.
 



0 Responses to “Convert TIGER Census Shapefiles (And General Shapefiles As Well) Into Thematic Google Earth KML Files”


  1. No Comments

Leave a Reply


I welcome all legitimate comments. But spammers should know that my spam filters are currently blocking almost 100% of comment spam, and any that gets through the filters is immediately deleted. Don't believe me? Try posting a spam comment, and see what happens.

Powered by WP Hashcash