{"payload":{"allShortcutsEnabled":false,"path":"applications/rendering/genericHeatmapRender","repo":{"id":511498073,"defaultBranch":"main","name":"svn-archive","ownerLogin":"openstreetmap","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-07-07T11:20:59.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/261431?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"main","listCacheKey":"v0:1657837147.4115899","canEdit":false,"refType":"branch","currentOid":"dfa2acd1f6f48cdc4c12f366c0833e35a7e27bdc"},"tree":{"items":[{"name":"KMLGenerator.py","path":"applications/rendering/genericHeatmapRender/KMLGenerator.py","contentType":"file"},{"name":"binnedNodeHeatmap_Demo.py","path":"applications/rendering/genericHeatmapRender/binnedNodeHeatmap_Demo.py","contentType":"file"},{"name":"gplv3.txt","path":"applications/rendering/genericHeatmapRender/gplv3.txt","contentType":"file"},{"name":"heatmapPNGgenerator.py","path":"applications/rendering/genericHeatmapRender/heatmapPNGgenerator.py","contentType":"file"},{"name":"heatmappr.py","path":"applications/rendering/genericHeatmapRender/heatmappr.py","contentType":"file"},{"name":"heatmappr_GridDemo.py","path":"applications/rendering/genericHeatmapRender/heatmappr_GridDemo.py","contentType":"file"},{"name":"heatmappr_TAHheatmap.py","path":"applications/rendering/genericHeatmapRender/heatmappr_TAHheatmap.py","contentType":"file"},{"name":"location.py","path":"applications/rendering/genericHeatmapRender/location.py","contentType":"file"},{"name":"locationFinder.py","path":"applications/rendering/genericHeatmapRender/locationFinder.py","contentType":"file"},{"name":"locationFinder_TAHregularGrid.py","path":"applications/rendering/genericHeatmapRender/locationFinder_TAHregularGrid.py","contentType":"file"},{"name":"locationFinder_flickr_locations.py","path":"applications/rendering/genericHeatmapRender/locationFinder_flickr_locations.py","contentType":"file"},{"name":"locationFinder_regularGrid.py","path":"applications/rendering/genericHeatmapRender/locationFinder_regularGrid.py","contentType":"file"},{"name":"readme.txt","path":"applications/rendering/genericHeatmapRender/readme.txt","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"readme.txt","richText":"
Introduction\n============\n\nThis code was an attempt at generating 'most photographed' heatmaps using the flickR API.\nThe code has been donated in the hope that the OpenStreetMap community can find uses for it in\nother projects. I've separated out the various functions (location gathering, plotting and KML).\n\nCurrently the data source is flickR, and output pngs have *manually* been merged with OSM exports\n(or displayed in KML using the supplied class). \n\nHowever I hope to remedy this and download appropriate images from OSM, maybe using PIL to do the overlay. \nAny pointers welcome!\n\nI'm new to FOSS and OSM, so any style/coding suggestions are welcome :)\n\nQuick Tour\n==========\nLocation.py - a generic 'point marker'\n\nlocationFinder.py - responsible for generating a list of Location objects of interest.\nThis is a generic class which should be sub-classed for other applications.\n\nlocationFinder_flickr_locations.py - an example sub-class, implementing a flickR API geo query.\n(*Needs flickR API key*)\n\nheatmapPNGgenerator.py - generates a heatmap using matplotlib and a supplied locationFinder object.\nSaves png file to given location.\n\nKMLGenerator.py - given a locationFinder, a PNG file and a filename for the KML, saves a KML file with\nan image overlay and placemarkers for the individual locations.\n\nheatmappr.py is an end-to-end example/demo. \n\nPrerequisites\n=============\n\nThese are the libraries you'll need to install\nyour mileage may vary if you use older libs than this.\n\nMatplotlib 0.98.5.2 (http://matplotlib.sourceforge.net/users/installing.html)\nNumpy 1.3.0\nPython Flickr API (http://stuvel.eu/projects/flickrapi)\n\nYou'll need to be using Python 2.5 or later.\n\nIf you wish to try using the example (which uses the flickR API) you will need\nto get yourself a flickR API key. If you're a flickR user, visit the following URL..\n\nhttp://www.flickr.com/services/api/keys/apply/\n\n..to apply for a key. \n\nBe careful not to commit a copy of locationFinder_flickr_locations.py with\na copy of your API, as it this will breach the flickr api TOS.\n\nKnown Issues\n============\nA number of asserts have been put in place to cope with known issues.\n\nGoogle Earth Issues with KML overlays\n========================\nMy version of GE for testing is 5.0.11733.9347\n\nSometimes, the photo overlay does not appear, but the pushpins do. \n\nIf this happens, first try this:-\n\n[1] Right-click on the file in the places palette, then choose 'Revert'. This reloads the file.\n You should also do this if you change the .kml file and want to see the changes in GE.\n[2] If that doesn't work, right click the file in places palette, and choose 'Delete'. This doesn't delete\n the file, but simply removes it from the 'My Places' or 'My Temporary Places' folder. \n Then open the file again.\n[3] If that doesn't work, try restarting GE.\n