Extracting Topological Information from Spatial Constraint Databases