I had a similar problem using GEOFLA file projection. The solution I've found is basically to change my shapefile projection using QGIS. My idea was to use the projection of the shapefile given in installation guide which worked for me.
Get example shape file from kartograph installation page
- Load this vector layer in QGIS Add your GEOFLASH layer in QGIS
- Right-click on GEOFLASH layer and "Save as..." menu
- In the save window, give a new name for your layer (eg : DEPARTEMENT_WGS84.shp)
- Click CSR button and select the test layer projection (WGS 84 / EPSG:4326)
- Click OK
Check the new shape file has correct projection :
cat DEPARTEMENT_WGS84.prj
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Now your script should work fine using new shape file.