posts tagged 'code'

pixelArea

I thought of this about a year ago, while implementing a dot density map in wiscMapper, but never needed to use it until recently. You see, as I noted recently here, to create a dot density map in Flash, it is typical to create random points within the bounding coordinates of the polygonal feature [...]

easy shapefile loading in python

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) [...]

just as easy, but with the added advantage of being correct

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. [...]