Spatial database

A spatial database is a database that is optimized for storing and querying data that represents objects defined in a geometric space. Most spatial databases allow the representation of simple geometric objects such as points, lines and polygons. Some spatial databases handle more complex structures such as 3D objects, topological coverages, linear networks, and TINs. While typical databases have developed to manage various numeric and character types of data, such databases require additional functionality to process spatial data types efficiently, and developers have often added geometry or feature data types. The Open Geospatial Consortium (OGC) developed the Simple Features specification (first released in 1997)[1] and sets standards for adding spatial functionality to database systems.[2] The SQL/MM Spatial ISO/IEC standard is a part the SQL/MM multimedia standard and extends the Simple Features standard with data types that support circular interpolations.[3]

Geodatabase

A geodatabase (also geographical database and geospatial database) is a database of geographic data, such as countries, administrative divisions, cities, and related information. Such databases can be useful for websites that wish to identify the locations of their visitors for customization purposes.

Characteristics

Database systems use indexes to quickly look up values; however, this way of indexing 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 operations and many more are specified by the Open Geospatial Consortium standard:

  • Spatial Measurements: Computes line length, polygon area, the distance between geometries, 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 about spatial relationships between geometries. Examples include "do two polygons overlap" or 'is there a residence located within a mile of the area we are planning to build the landfill?' (see DE-9IM)
  • Geometry Constructors: Creates new geometries, usually by specifying the vertices (points or nodes) which define the shape.
  • Observer Functions: Queries which return specific information about a feature such as the location of the center of a circle

Some databases support only simplified or modified sets of these operations, especially in cases of NoSQL systems like MongoDB and CouchDB.

Spatial index

Spatial indices are used by spatial databases (databases which store information related to objects in space) to optimize spatial queries. Conventional index types do not efficiently handle spatial queries such as how far two points differ, or whether points fall within a spatial area of interest. Common spatial index methods include:

Spatial database systems

List

  • AllegroGraph – a graph database which provides a mechanism for efficient storage and retrieval of two-dimensional geospatial coordinates for Resource Description Framework data. It includes an extension syntax for SPARQL queries.
  • Caliper extends the Raima Data Manager with spatial datatypes, functions, and utilities.
  • CouchDB a document-based database system that can be spatially enabled by a plugin called Geocouch
  • Elasticsearch is a document-based database system that supports two types of geo data: geo_point fields which support lat/lon pairs, and geo_shape fields, which support points, lines, circles, polygons, multi-polygons, etc.[4]
  • GeoMesa is a cloud-based spatio-temporal database built on top of Apache Accumulo and Apache Hadoop (also supports Apache HBase, Google Bigtable, Apache Cassandra, and Apache Kafka). GeoMesa supports full OGC Simple Features and a GeoServer plugin.
  • H2 supports geometry types[5] and spatial indices[6] as of version 1.3.173 (2013-07-28). An extension called H2GIS available on Maven Central gives full OGC Simple Features support.
  • IBM DB2 Spatial Extender can spatially-enable any edition of DB2, including the free DB2 Express-C, with support for spatial types
  • IBM Informix Geodetic and Spatial datablade extensions auto-install on use and expand Informix's datatypes to include multiple standard coordinate systems and support for RTree indexes. Geodetic and Spatial data can also be incorporated with Informix's Timeseries data support for tracking objects in motion over time.
  • Linter SQL Server supports spatial types and spatial functions according to the OpenGIS specifications.
  • Microsoft SQL Server has support for spatial types since version 2008
  • MonetDB/GIS extension for MonetDB adds OGS Simple Features to the relational column-store database.[7]
  • MySQL DBMS implements the datatype geometry, plus some spatial functions implemented according to the OpenGIS specifications.[8] However, in MySQL version 5.5 and earlier, functions that test spatial relationships are limited to working with minimum 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.
  • Neo4j – a graph database that can build 1D and 2D indexes as B-tree, Quadtree and Hilbert curve directly in the graph
  • OpenLink Virtuoso has supported SQL/MM since version 6.01.3126[9], with significant enhancements including GeoSPARQL in Open Source Edition 7.2.6, and in Enterprise Edition 8.2.0[10]
  • Oracle Spatial
  • PostgreSQL DBMS (database management system) uses the spatial extension PostGIS to implement the standardized datatype geometry and corresponding functions.
  • Redis with the Geo API.[11]
  • RethinkDB supports geospatial indexes in 2D.
  • SAP HANA supports geospatial with SPS08.[12]
  • Smallworld VMDS, the native GE Smallworld GIS database
  • Spatial Query Server from Boeing spatially enables Sybase ASE.
  • SpatiaLite extends Sqlite with spatial datatypes, functions, and utilities.
  • Tarantool supports geospatial queries with RTREE index.[13]
  • Teradata Geospatial includes 2D spatial functionality (OGC-compliant) in its data warehouse system.
  • Vertica Place, the geo-spatial extension for HP Vertica, adds OGC-compliant spatial features to the relational column-store database.[14]

Table of free systems especially for spatial data processing

DBSLicenseDistributedSpatial objectsSpatial functionsPostgreSQL interfaceUMN MapServer interfaceDocumentationModifiableHDFS
GeoMesa Apache License 2.0 yes yes (Simple Features) yes (JTS) no (manufacturable with GeoTools) no parts of the functions, a few examples with Simple Feature Access in Java Virtual Machine and Apache Spark are all kinds of tasks solvable yes
H2 (H2GIS) LGPL 3 (since v1.3), GPL 3 before no yes (custom, no raster) Simple Feature Access and custom functions for H2Network yes no yes (homepage) SQL no
Ingres GPL or proprietary yes (if extension is installed) yes (custom, no raster) Geometry Engine, Open Source[15] no with MapScript just briefly with C and OME no
Neo4J-spatial[16] GNU affero general public license no yes (Simple Features) yes (contain, cover, covered by, cross, disjoint, intersect, intersect window, overlap, touch, within and within distance) no no just briefly fork of JTS no
PostgreSQL with PostGIS GNU General Public License no yes (Simple Features and raster) yes (Simple Feature Access and raster functions) yes yes detailed SQL, in connection with R no
Postgres-XL with PostGIS Mozilla public license and GNU general public license yes yes (Simple Features and raster) yes (Simple Feature Access and raster functions) yes yes PostGIS: yes, Postgres-XL: briefly SQL, in connection with R or Tcl or Python no
Rasdaman server GPL, client LGPL, enterprise proprietary yes just raster raster manipulation with rasql yes with Web Coverage Service or Web Processing Service detailed wiki own defined function in enterprise edition no
RethinkDB AGPL yes yes
  • distance
  • getIntersecting
  • getNearest
  • includes
  • intersects
no no official documentation[17] forking no
gollark: Cult of the Full Hub.
gollark: <@!330678593904443393> Worldgen WORKS but is incompatible with CoFH World.
gollark: ```File applied-energistics-2 [rv6-stable-3].jar already downloaded.File autoreglib [1.3-20].jar already downloaded.File baubles [1.12-1.5.2].jar already downloaded.File bitcoin [1.12.2-1.1.0].jar already downloaded.File botania [r1.10-357].jar already downloaded.File codechicken-lib [1.12-3.2.2.353].jar already downloaded.File cofh-core [1.12.2-4.6.1.22].jar already downloaded.File cofh-world [1.12.2-1.3.0.6].jar already downloaded.File computercraft [1.80pr1.10].jar already downloaded.File cubic-chunks [1.12.2-0.0.902.0].jar already downloaded.File cubic-chunks-worldgen [1.12.2-0.0.33.0].jar already downloaded.File jei [1.12.2-4.13.1.222].jar already downloaded.File opencomputers [1.12.2-1.7.2.67].jar already downloaded.File plethora-peripherals [1.12.2-1.1.13].jar already downloaded.File psi [r1.1-59].jar already downloaded.File quark [r1.5-130].jar already downloaded.File redstone-flux [1.12.2-2.1.0.6].jar already downloaded.File thermal-dynamics [1.1.2-2.5.3.16].jar already downloaded.File thermal-expansion [1.1.2-5.5.2.39].jar already downloaded.File thermal-foundation [1.1.2-2.6.1.22].jar already downloaded.File thermal-innovation [1.1.2-0.3.1.8].jar already downloaded.File tis-3d [1.12.2-1.5.0.34].jar already downloaded.File vanillafix [1.0.9-97].jar already downloaded.File wawla [1.12.2-2.5.264].jar already downloaded.File worldedit [mc1.12-6.1.8].jar already downloaded.File xaero-minimap [1.15.8].jar already downloaded.██████████████████████████████████████░░ ❘ moar-boats ❘ 96% ❘ 1s ❘ 1.91MB/2MB ❘ 379.45kB/sMod download complete. The modpack recommends Forge version 14.23.5.2768.```Progress bars: the epitome of advanced technology. Please ignore the slightly broken number there.
gollark: Expect it to be kind of broken because nothing supports cubic chunks worldgen, though if you like I can generate the ores using a command computer as a backup.
gollark: I just need to improve the modlist and then I'll start up a MineCRAFT™ server.

See also

References

  1. McKee, Lance (2016). "OGC History (detailed)". OGC. Retrieved 2016-07-12. [...] 1997 [...] OGC released the OpenGIS Simple Features Specification, which specifies the interface that enables diverse systems to communicate in terms of 'simple features' which are based on 2D geometry. The supported geometry types include points, lines, linestrings, curves, and polygons. Each geometric object is associated with a Spatial Reference System, which describes the coordinate space in which the geometric object is defined.
  2. OGC Homepage
  3. Kresse, Wolfgang; Danko, David M., eds. (2010). Springer handbook of geographic information (1. ed.). Berlin: Springer. pp. 82–83. ISBN 9783540726807.
  4. https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-queries.html
  5. H2 geometry type documentation
  6. H2 create spatial index documentation
  7. "GeoSpatial – MonetDB". 4 March 2014.
  8. "MySQL 5.5 Reference Manual - 12.17.1. Introduction to MySQL Spatial Support". Archived from the original on 2013-04-30. Retrieved 2013-05-01.
  9. OpenLink Software. "9.34. Geometry Data Types and Spatial Index Support". Retrieved October 24, 2018.
  10. OpenLink Software (2018-10-23). "New Releases of Virtuoso Enterprise and Open Source Editions". Retrieved October 24, 2018.
  11. "Command reference – Redis".
  12. "SAP Help Portal" (PDF).
  13. http://tarantool.org/doc/user_guide/RTREE.html#in-memory
  14. "HP Vertica Place". 2 December 2015.
  15. "GEOS".
  16. "Neo4j Spatial is a library of utilities for Neo4j that facilitates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial". 2019-02-18.
  17. "ReQL command reference - RethinkDB".

Further reading

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.