Writing a Renderer in Python
For my project I want to display point data in pretty colours. I have survey data for villages that record the number of cases of disease and the village population, and I want to colour according to the percentage infected. Red for high, green for low.
Now, I could compute ncases/population, add that to the attribute table of my shapefile, and use the Continuous Color Renderer, but I don’t want to impose anything else on my data files. So I figured I’d write a renderer that took two attributes and coloured accordingly.
In Python.
(via Quantum GIS Blog - Dev-Speak and other QGIS Ramblings…)
Posted on Wednesday June 6th