Topological relations in spatial databases