Manipulating spatial data in constraint databases