Task-Adaptive Meta-Learning Framework for Advancing Spatial Generalizability