An Introduction to Spatial Databases