PostGIS's ST_MapAlgebra
function (focal operations) seems a good candidate for implementing Erosion and Dilation operations, which are like the vectorial counterpart ST_Buffer
(positive and negative).
It is not obvious, and the Guide does not show examples. Can you show an example?