Spatial functionality for Scala