Added date checking for spatial data extraction