Tools for spatial data