MapofLife/MOL — Issue #2: Replace ogr2ogr with pyshp
Author: gaurav
Created: 2011-10-15 03:54:51+00:00
State: open

pyshp is a Python-only library for manipulating shapefiles. Since we're already incorporating it to create a dummy DBF file for @eightysteele's shapefile-to-PostGIS hack, it might make sense to read the fields directly from the shapefiles using pyshp instead of relying on GDAL being installed to handle the DBF-to-CSV transformation. It would also be handy in evolving loader.py into an independent program which we could distribute to data providers, who could use it to validate their files before uploading them to MoL.

Obviously, a *very* low priority task for the foreseeable future. I just wanted to write it down so I wouldn't forget :).