Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Spatial indexes
are used by spatial databases (databases which store information related
to objects in space) to optimize spatial queries. Indexes used by
non-spatial databases cannot effectively handle features such as how far
two points differ and whether points fall within a spatial area of
interest. A spatial query is a special type of database query supported
by geodatabases and spatial databases. The queries differ from SQL
queries in several important ways. Two of the most important are that
they allow for the use of geometry data types such as points, lines and
polygons and that these queries consider the spatial relationship
between these geometries.