Spatial similarity and spatial weights