Heatmap with weighting applied
Following up on the playing around I was having with heatmaps the other day, I made a few updates to the heatmap.py script to allow for each point to have an associated ‘intensity’. When the points are plotted, the intensities are normalised and each point plotted with a relative intensity (as shown in the image on the right).
Few other little changes I made:
- allow the area covered by the size of the final image to be specified, rather than using the max & min x/y coordinates from the input points
- change how the the dots are built – in theory should be a little quicker – but I’ve not tested with large enough dataset to know if it makes a big difference
- in my demo script I’ve shown how you can convert the latitude to its Mercartor projection coordinate
For those interested in the changes I made to the heatmap.py script you can download the diff and an example script. Any feedback, comments welcome 🙂
Maybe I didn’t need to buy myself GPS after all… (from tecznotes):
Walking Papers is a website and a service designed to close this final loop by providing OpenStreetMap print maps that can be marked up with a pen, scanned back into the computer, and traced using OSM’s regular web-based editor, Potlatch. It’s designed for the casual mapper who doesn’t want to fill their pockets with gadgets to record what’s around them, the social mapper who might be out and about taking notes and comparing them with friends, and the opportunistic mapper who might make notes during a commute or a walk if they had a notebook-sized slip of paper to write on. Finally, it’s designed for the luddite mapper who would like to help the OpenStreetMap project but needs help from a distributed community to convert their handwritten annotations into OpenStreetMap’s tagged data and local conventions.