Skip to content

Instantly share code, notes, and snippets.

View patmisch's full-sized avatar

Patrick Misch patmisch

View GitHub Profile
@patmisch
patmisch / shape_importer.py
Created May 10, 2012 02:29
Shapefile Importer
#!/user/bin/python2.7
#script for importing US Census Tract File
#works specifically for subfolder 'shapefiles' with x number of subfolders for each state
#requires pyshp library http://code.google.com/p/pyshp/ and psycopg2 postgresql library
import psycopg2
import shapefile
import glob