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 operation. 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 vertice 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.
[edit] Spatial Database Systems
- All OpenGIS Specifications compliant products [1]
- Open source spatial databases and APIs, some of which are OpenGIS compliant [2]
- 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. These are not supported for tables of type InnoDB thus lacking constraints.
[edit] Books
- Spatial Databases: A Tour [3], 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] Articles
- An introduction to PostgreSQL PostGIS
- PostgreSQL PostGIS as components in a Service Oriented Architecture (SOA))
[edit] See also
Spatial query Spatial data analysis