Hi
I've never used it, but it shouldn't be too difficult. You'd probably want to install a full version of Python and define it as the FME interpreter before installing the heatmap module. You could then read your data using FME and send it into a PythonCaller that converts it into a heatmap object.
In your PythonCaller you will probably want to use the class definition to process your data. That way you can initialize the heatmap module and any global settings in the __init__ method, populate the data in the input method, and finally write out the heatmap itself in the close method.
Here's an (untested!) example based on the first sample shown on the website:
import fme
import fmeobjects
import heatmap
class FeatureProcessor(object):
def __init__(self):
self.hm = heatmap.Heatmap()
self.hm_points = []
def input(self,feature):
vertex = feature.getCoordinate(0)
self.hm_points.append((vertex[0], vertex[1]))
self.pyoutput(feature)
def close(self):
img = self.hm.heatmap(self.hm_points)
img.save(FME_MacroValues['HEATMAP_FILENAME'])
David