Skip to content

Instantly share code, notes, and snippets.

View thebat137's full-sized avatar

Anne C. Hanna thebat137

  • Georgia Institute of Technology
  • Philadelphia, PA
View GitHub Profile
@jlehtoma
jlehtoma / generate_shx.py
Created January 14, 2015 14:08
Re-create missing .shx-file for ESRI shapefiles
# Based on solution given here: http://geospatialpython.com/2011/11/generating-shapefile-shx-files.html
# Depends on pyshp
# Build a new shx index file
import fnmatch
import os
import shapefile
# List all the shapefiles
def find(pattern, path):