Spatial indexing for object-relational databases