classes and methods for spatial data