Replaced JSON based IO for GDAL rasterize, and used OGRGeomBuilder from Fiona.