Spatial data is associated with geographic locations and stored in a spatial database optimized for objects defined in geometric space. A spatial database system is a database that offers spatial data types in its data model and query language, supporting spatial indexing and algorithms for spatial joins. Spatial data can be vector data represented as points, lines and polygons, or raster data represented as a matrix of cells.