Safekipedia

Spatial database

Adapted from Wikipedia Β· Discoverer experience

A spatial database is a special kind of database that has been made better to include spatial data. This means it can work with information about objects in a geometric space, like where things are and how they are shaped. It has tools to ask questions about this spatial data and to analyze it.

Most spatial databases can show simple shapes such as points, lines, and polygons. Some can even handle more complicated shapes like 3D objects, topological coverages, and triangulated irregular networks. Regular databases are good at handling numbers and words, but they need extra features to work well with spatial data.

A geographic database is a type of spatial database that stores and works with geographic data, which is information linked to places on Earth. This is very useful for geographic information systems (GIS). Today, most database systems have added special features for spatial data, and some GIS companies have made their own additions too.

The Open Geospatial Consortium created the Simple Features specification to help make sure databases can handle spatial data in a standard way. There is also a standard called SQL/MM Spatial that adds spatial features to the structured query language.

Characteristics

A spatial database is a special kind of database that can store and work with maps and shapes. It adds new types of data that let it hold points, lines, and areas, which are ways to show real-world objects like cities, roads, and parks.

These databases also let people ask special questions using regular database language. For example, you can find out how far two places are from each other, see if one area overlaps another, or create new shapes by changing existing ones. This helps in many map-related tasks.

Spatial index

A spatial index helps a spatial database work faster when looking for places or objects. Normal databases use simple lists to find things, but this doesn’t work well for maps or 3D spaces. So spatial databases use special kinds of indexes made just for places.

Some common ways to make a spatial index include:

Spatial query

A spatial query is a special kind of search that spatial databases can do. These databases can handle maps and shapes, like points, lines, and areas. The queries are different from regular database searches because they look at how these shapes relate to each other.

Different databases use different names for their search tools. For example, PostGIS, a free tool that adds map features to PostgreSQL, has many useful functions. Some of these include checking the distance between points, seeing if shapes touch or overlap, and finding the size or center of a shape. These tools help answer questions like which cities are inside which countries.

Spatial database management systems

Main category: Spatial database management systems

Main category: Geographical databases

Spatial database management systems are special tools that help computers store and work with maps and locations. These systems can handle simple shapes like points, lines, and areas, and some can even manage more complex 3D objects and networks.

Here are some examples of these special tools:

DBSLicenseDistributedSpatial objectsSpatial functionsPostgreSQL interfaceUMN MapServer interfaceDocumentationModifiableHDFS
Apache DrillApache License 2.0YesYesYes - Drill Geospatial Functions DocumentationYesNoOfficial DocumentationANSI SQLYes
ArangoDBApache License 2.0YesYesYes - capabilities overview query language functionsNoNoofficial documentationAQLNo
GeoMesaApache License 2.0YesYes (Simple Features)Yes (JTS)No (manufacturable with GeoTools)Noparts of the functions, a few exampleswith Simple Feature Access in Java Virtual Machine and Apache Spark are all kinds of tasks solvableYes
H2 (H2GIS)LGPL 3 (since v1.3), GPL 3 beforeNoYes (custom, no raster)Simple Feature Access and custom functions for H2NetworkYesNoYes (homepage)SQLNo
IngresGPL or proprietaryYes (if extension is installed)Yes (custom, no raster)Geometry Engine, Open SourceNowith MapScriptjust brieflywith C and OMENo
Neo4J-spatialGNU affero general public licenseNoYes (Simple Features)Yes (contain, cover, covered by, cross, disjoint, intersect, intersect window, overlap, touch, within and within distance)NoNojust brieflyfork of JTSNo
PostgreSQL with PostGISGNU General Public LicenseNoYes (Simple Features and raster)Yes (Simple Feature Access and raster functions)YesYesdetailedSQL, in connection with RNo
Postgres-XL with PostGISMozilla public license and GNU general public licenseYesYes (Simple Features and raster)Yes (Simple Feature Access and raster functions)YesYesPostGIS: yes, Postgres-XL: brieflySQL, in connection with R or Tcl or PythonNo
Rasdamanserver GPL, client LGPL, enterprise proprietaryYesjust rasterraster manipulation with rasqlYeswith Web Coverage Service or Web Processing Servicedetailed wikiown defined function in enterprise editionNo
RethinkDBAGPLYesYes
distance
getIntersecting
getNearest
includes
intersects
NoNoofficial documentationforkingNo

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Spatial database, available under CC BY-SA 4.0.