Safekipedia

Spatial database

Adapted from Wikipedia Β· Adventurer experience

A spatial database is a special kind of database that works with spatial data. This means it can handle information about where things are and how they are shaped in a geometric space. It has tools to ask questions about this spatial data and to study it.

Most spatial databases can show simple shapes such as points, lines, and polygons. Some can also manage more complex shapes like 3D objects, topological coverages, and triangulated irregular networks. Regular databases are good with 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 about places on Earth. This is very helpful for geographic information systems (GIS). Today, most database systems include special features for spatial data, and some GIS companies have added their own features too.

The Open Geospatial Consortium made the Simple Features specification to help databases 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 can hold points, lines, and areas, which show real-world objects like cities, roads, and parks.

These databases 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 find places or objects faster. Normal databases use simple lists, but this doesn’t work well for maps or 3D spaces. So spatial databases use special 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 work with maps and shapes, such as points, lines, and areas. The searches 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.

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.