Added function to generate sample grid around spatial points.