My recent work on creating a more flexible circular cartogram algorithm meant that I needed (well, wanted) to load shapefiles into a Python application. After many searches and scouring of message boards, I settled on the OGR/GDAL libraries. And 3 hours later I had it installed on my MacBook…
I’m sure that OGR (vector) [...]
Cheers, folks. So, just 1.5 months ago I posted my own Python script to load shapefile data. Well, recently — while doing some pretty hardcore shapefile loading + cartogram generation — I realized I had a pretty significant error in my shapefile loading module.
This link (to my corrected shpUtils.py), corrects the mistake. [...]
update: Here’s the dorling.py code, which is just a port of Danny Dorling’s C to Python. Remember, this only works with a particular topological input format (see county.in). I’ve done some more experiments with the circular cartogram algorithm: here, here, and most recently here.
Dr. Daniel Dorling was recently nice enough to provide me [...]