Spatial Databases: With Application to GIS