continuous and discrete spatial heterogeneity