Fast contour lines using plain PostGIS

from blog Intronautics 101, | ↗ original
↗ original
There’s a bunch of different ways to generate contour lines [1] from scatter data, each of them based on different interpolation algorithms. Like KNN [2], IDW [3] or kriging-flavoured methods [4]. (image from Wikipedia)