Skip to content

Grabs shapefiles from the US Census and converts them to .kml format

License

Notifications You must be signed in to change notification settings

GovHub/CensusShapeConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GovHub's Census Shape Converter

The Census Shape Converter, (or CSC, for lack of a better name,) helps decipher the vast U.S. government repository of map shapes from the 2010 census into .kml files, a more universal format.

Currently, CSC does these things:

  1. Grabs an archive from the U.S. Census FTP archive.
  2. Converts your choice of Congressional Districts, States, Counties, or Localities to .kml format
  3. Separates the different maps into a coherent file structure.
  4. (Optionally) reduces the size of the .kml file using the Douglas-Peuker algorithm.

Installation

CSC is designed to be run from the command-line, so there's no trickery to installing it.

You will have to install its one dependency, the GDAL/OGR Binaries, which are used for conversion to .kml. Follow the instructions in the GDAL Readme to add ogr2ogr to your ~/.bash-profile.

After that, just run php convert.php in the command-line, and the script will guide you through the rest.

@Todo

  • Support other regions, e.g. school districts, zip codes, etc.
Credits

About

Grabs shapefiles from the US Census and converts them to .kml format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages