Functions to read and write ESRI shapefiles.