Skip to main content

I'm trying convert Census block shapefiles (see link: https://www.census.gov/cgi-bin/geo/shapefiles/index.php?year=2017&layergroup;=Blocks+%282010%29) into KMLs that can be opened easily in GE. The Census Bureau has readily available state-by-state KMLs for tracts and block groups, but for blocks (the smallest unit), they only offer downloads in the form of very, very large shapefiles.

Any suggestions?

To reduce the size of a file regardless of its format, you can do a few things:

  • Reduce the number of attributes, e.g. using the AttributeKeeper
  • Simplify your geometries, e.g. using the Generalizer
  • Convert your file into a (dumb) image.

Any of these will reduce the quality of your data. If you don't want that, you can split the file into a collection of files/tiles. See https://knowledge.safe.com/articles/887/optimizing-large-datasets-for-kml-and-google-earth.html (Beware: this is quite advanced that took me a while to master)


In the KMLStyler, there is an option Allow Unique Styles Per Feature, where you specify whether you want to have one single style for all features or a style for every feature, i.e. 10 lines of code in the header of your KML file, or 10 lines of code for every feature!

Although having one single style is often insufficient, you could create a separate KML for each style class, e.g. one for each interval or each subtype, unticking that aforementioned option!


Reply