Add a function to allow drawing stratified sample from grid.