CensusShapeConverter
Grabs shapefiles from the US Census and converts them to .kml format
Install / Use
/learn @GovHub/CensusShapeConverterREADME
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:
- Grabs an archive from the U.S. Census FTP archive.
- Converts your choice of Congressional Districts, States, Counties, or Localities to .kml format
- Separates the different maps into a coherent file structure.
- (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
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
