Choosing between abrupt and gradual spatial variation