Contextual Spatial Computing: A Generative Approach