Theory of Spatial Similarity Relations and Its Applications in Automated Map Generalization