implement spatially subsetting