Spatial database

From Wikipedia, the free encyclopedia

A spatial database is a database that is optimized to store and query data related to objects in space, including points, lines and polygons. While typical databases can understand various numeric and character types of data, additional functionality needs to be added for databases to process spatial data types. These are typically called geometry or feature. The Open Geospatial Consortium created the Simple Features specification and sets standards for adding spatial functionality to database systems. OGC Homepage.

Contents

[edit] Features of Spatial Databases

Database systems use indexes to quickly look up values and the way that most databases index data is not optimal for spatial queries. Instead, spatial databases use a spatial index to speed up database operations.

In addition to typical SQL queries such as SELECT statements, spatial databases can perform a wide variety of spatial operations. The following query types and many more are supported by the Open Geospatial Consortium:

  • Spatial Measurements: Finds the distance between points, polygon area, etc.
  • Spatial Functions: Modify existing features to create new ones, for example by providing a buffer around them, intersecting features, etc.
  • Spatial Predicates: Allows true/false queries such as 'is there a residence located within a mile of the area we are planning to build the landfill?'
  • Constructor Functions: Creates new features with an SQL query specifying the vertices (points of nodes) which can make up lines. If the first and last vertex of a line are identical the feature can also be of the type polygon (a closed line).
  • Observer Functions: Queries which return specific information about a feature such as the location of the center of a circle

Not all spatial databases support these query types.

DB2 Viper is a good example

[edit] Spatial Database Systems

  • All OpenGIS Specifications compliant products [1]
  • Open source spatial databases and APIs, some of which are OpenGIS compliant [2]
  • Boeing Spatial Query Server - Spatially enables Sybase ASE
  • Oracle Spatial
  • PostgreSQL DBMS (database management system) uses the spatial extension PostGIS to implement the standardized datatype geometry and corresponding functions.
  • MySQL DBMS implements the datatype geometry plus some spatial functions that haven't been implemented according to the OpenGIS specifications. Functions that test spatial relationships are limited to working with master bounding rectangles rather than the actual geometries. MySQL versions earlier than 5.0.16 only supported spatial data in MyISAM tables. As of MySQL 5.0.16, InnoDB, NDB, BDB, and ARCHIVE also support spatial features.
  • Spatial Databox [3] is a spatial front-end to a relational system that provides nearest neighbor and containment spatial queries. It also provides a real-time response guarantee to queries so as to support interactive map mashups.

[edit] Books

  • Spatial Databases: A Tour [4], Shashi Shekhar and Sanjay Chawla, Prentice Hall, 2003 (ISBN 0-13-017480-7)
  • ESRI Press. ESRI Press titles include Modeling Our World: The ESRI Guide to Geodatabase Design, and Designing Geodatabases: Case Studies in GIS Data Modeling , 2005 Ben Franklin Award winner, PMA, The Independent Book Publishers Association.
  • Spatial Databases - With Application to GIS. Philippe Rigaux, Michel Scholl and Agnes Voisard. (ISBN 1-55860-588-6)

[edit] References

[edit] See also

Languages