305579 (1) [Avatar] Offline
#1
I came across pysal library in python for spatial data analysis.
http://www.pysal.org/users/tutorials/weights.html#distance-based-weights

I am a newbie in the spatial world but I think pysal distance based weight calculation can be done in postgis using KNN along with ST_Distance and ST_Dwithin functions. Am i right in my assumption?