title: Generating a KML heatmap from given data set of [lat, lon, density]
body: <p>I am looking to build a static KML (Google Earth markup) file which displays a heatmap-style rendering of a few given data sets in the form of [lat, lon, density] tuples.</p>
  
  <p>A very straightforward data set I have is for population density.</p>
  
  <p>My requirements are:</p>
  
  <ul>
  <li>Must be able to feed in data for a given lat, lon</li>
  <li>Must be able to specify the density of the data at that lat, lon</li>
  <li>Must export to KML</li>
  </ul>
  
  <p>The requirements are language agnostic for this project as I will be generating these files offline in order to build the KML used elsewhere.</p>
  
  <p>I have looked at a few projects, most notably <a href="http://jjguy.com/heatmap/" rel="noreferrer">heatmap.py</a>, which is a port of <a href="http://code.google.com/p/gheat/" rel="noreferrer">gheat</a> in Python with KML export. I have hit a brick wall in the sense that the projects I have found to date all rely on building the heatmap from the density of [lat, lon] points fed into the algorithm. </p>
  
  <p>If I am missing an obvious way to adapt my data set to feed in just the [lat, lon] tuples but adjusting how I feed them using the density values I have, I would love to know!</p>