Density Map in Spotfire : Grid id function

Hi , in the link below , Dr Shaw has a TERR function to create grid id of a shape file . Can you please share that function.

I would like to combine the output of the HeatMap function with this grid id function to apply soem analytics as per the mentioned video. 


(1) Answer