慢性结肠炎用什么药| 胎盘植入是什么意思| 孤臣是什么意思| 月经推后是什么原因| 外阴白斑瘙痒抹什么药| 梦见好多虫子是什么意思| 颈动脉硬化有什么症状| ts代表什么| 肋骨外翻有什么危害| 豆柏是什么| 做三明治需要什么材料| 综合基础知识考什么| 穿刺是什么手术| 蝉什么时候出现| 布洛芬是什么药| 炖什么汤对肺部最好| 六月一日什么星座| 北京的区长是什么级别| 射手座的幸运色是什么颜色| 医生五行属什么| 异型增生是什么意思啊| ufc是什么意思| 甲醛闻多了有什么症状| 没有鱼鳞的鱼是什么鱼| 供观音菩萨有什么讲究| 治疗静脉曲张有什么药| 扭伤挂什么科| 吃什么尿酸高| 白茶是什么茶| 天灾人祸什么意思| 子不孝父之过下一句是什么| 什么粉可以代替木薯粉| 什么是支气管扩张| 荨麻疹不能吃什么食物| 伪骨科是什么| 半月板退变是什么意思| 鼻孔里面痒是什么原因| 24是什么生肖| dmp是什么意思| 胆结石有什么治疗方法| 打喷嚏漏尿是什么原因| 紫烟是什么意思| 腿部青筋明显是什么原因| 青绿色是什么颜色| 美国属于什么洲| 梦见监狱是什么意思| 蜂蜜加白醋有什么功效| 好文采是什么意思| 左手无名指戴戒指什么意思| 脂肪是什么组织| 赭石色是什么颜色| 白羊女跟什么星座最配| 批捕意味着什么| 刘邦和刘备是什么关系| 仓鼠怀孕有什么特征| 什么食物含叶黄素最多| 四月27日是什么星座| 闭关什么意思| 夜来香是什么花| 藏风聚气是什么意思| 阴虚吃什么食物| 露怯是什么意思| 延年是什么意思| 5岁属什么| 避孕药有什么副作用| 睁一只眼闭一只眼是什么意思| 貔貅什么人不能戴| 文牍是什么意思| joan什么意思| 高压氧舱治疗什么效果| 液氧是什么| 做小吃什么生意最赚钱| 一个厂一个人念什么| aquascutum是什么牌子| 乳房边缘疼是什么原因| 红肿痒是什么原因| 什么叫前列腺钙化| 靓女是什么意思| 包皮看什么科| 捭阖是什么意思| 什么叫心悸| 什么验孕棒准确率高| 陕西的特产有什么| 什么是婚姻| 不晨勃是什么原因| 原发性是什么意思| 狗狗为什么会得细小| 吃樱桃有什么好处| 为什么今年这么热| 榴莲与什么食物相克| 肚脐眼右边是什么器官| 人工降雨的原理是什么| 什么竹子| 海淘是什么意思啊| 月经期同房有什么危害| 积劳成疾的疾是什么意思| 女生下面叫什么| 红参适合什么人吃| 榴莲不能与什么食物一起吃| 伊朗是什么民族| 死间计划到底是什么| 吃什么容易得胆结石| 红霉素软膏和红霉素眼膏有什么区别| 构筑物是什么意思| 右肺疼是什么原因| 车什么马什么| 4月份是什么星座| 乳腺4a类是什么意思| 95开头的是什么电话| 荨麻疹抹什么药膏| 午饭吃什么| shark是什么牌子| 佐匹克隆片是什么药| 喝什么可以降血压| 早饭吃什么好| 小拇指和无名指发麻是什么原因| 大利月小利月什么意思| 小限是什么意思| 胎动频繁到什么程度说明缺氧| 红艳艳的什么| 脚背抽筋是什么原因引起的| 康复治疗技术是什么| 葛根粉有什么功效| pvd是什么意思| 手电筒的金属外壳相当于电路中的什么| 胃寒可以吃什么水果| 浮云是什么意思| 嗣后是什么意思| 同比什么意思| hpv11阳性是什么意思| 人日是什么意思| 前列腺液是什么| 遂成大学的遂是什么意思| 什么农药最毒| zm是什么意思| 走路腰疼是什么原因| 移植后可以吃什么水果| 甲状腺有什么作用| 入盆是什么意思| goldlion是什么牌子| 吃什么能治脂肪肝| 吃瓜子有什么好处| hpv阳性是什么意思| 血脂高不能吃什么食物| 腰椎生理曲度存在是什么意思| 怀孕喝什么汤最有营养| 莱赛尔是什么面料| uu是什么意思| 什么茶叶降血压最好| 益气养阴是什么意思| 为什么一动就满头大汗| 合羽念什么| 什么梳子梳头最好| 什么是基础代谢| 黄金发红是什么原因| 八面玲珑指什么生肖| 中线是什么意思| 梦见自己被抢劫了预示什么| 一到晚上就饿什么原因| 面粉可以做什么| 甘油三酯低是什么原因| 貉是什么动物| 天气热吃什么解暑| 乙肝表面抗原是什么意思| 骨盆前倾挂什么科| 欧字五行属什么| 爱爱是什么意思| 什么牌子好| 不典型增生是什么意思| 长智齿说明了什么原因| 住院送什么花好| 洗脑是什么意思| 蜱虫用什么药可以消灭| 什么时辰出生的人命好| 经期适合什么运动| 九天揽月是什么意思| 喝苦荞茶有什么好处| 伊丽莎白雅顿什么档次| 扁桃体发炎用什么药| 处女座女和什么星座最配| 地素女装属于什么档次| 听雨是什么意思| 山东有什么好吃的| 间质瘤是什么性质的瘤| 脑血管堵塞吃什么药最好| 品保是做什么的| 素女经是什么| 铁蛋白高是什么意思| 被鬼缠身有什么症状| 胸部挂什么科| 塘鲺是什么鱼| 什么是金砖国家| 扁桃体挂什么科| 护理部主任是什么级别| 6月21号什么星座| 翻墙是什么| 尿道口为什么叫马眼| 一清二白是什么意思| 德国什么东西值得买| 当你从我眼前慢慢走过是什么歌| 脾切除对身体有什么影响| 护士需要什么学历| 支元体阳性是什么意思| 04属什么生肖| 扁桃体发炎发烧吃什么药| 阎王爷姓什么| 右下眼皮跳是什么原因| 双歧杆菌三联和四联有什么区别| 女生什么时候是排卵期| 骨质增生是什么| 高校自主招生是什么意思| 探病送什么花| 磕头虫吃什么| 四十年婚姻是什么婚| 宝宝发烧吃什么食物好| 免签是什么意思| 得逞是什么意思| 看近视眼挂什么科| 中药液是什么药| 青葱岁月是什么意思| 大象又什么又什么| 尿痛吃什么药效果最好| 转音是什么意思| 术后吃什么消炎药| 彷徨是什么意思| 人参补什么| 手刃是什么意思| 为什么脚底板发黄| 肩周炎是什么原因引起的| 手发热是什么原因| 支教回来后有什么待遇| 吃什么全面补充维生素| 小孩不吃饭是什么原因| 狗改不了吃屎是什么意思| 头晕挂什么科比较好| 维u是什么药| 安乐死是什么| 肠易激综合征吃什么药好| 股票加杠杆是什么意思| 青稞面是什么| 吃什么补气血| 宫颈细胞学检查是什么意思| 人的胆量由什么决定| 丹毒用什么药膏| from是什么意思| 肋膈角锐利是什么意思| 久负盛名的负是什么意思| 干咳无痰是什么原因引起的| bpd是什么| 天麻主治什么病| 棋字五行属什么| 层峦叠翠的意思是什么| 女生为什么会流白带| 吃什么可以止咳化痰| 4月29号是什么星座的| 海澜之家是什么档次| 不眠夜是什么意思| 智齿长什么样子图片| 小孩肚子痛挂什么科| 甲鱼炖什么好吃| 肩膀痛是什么原因| 汽车空调不制冷是什么原因| 女人脚肿是什么原因| 武则天是什么星座的| 百度Jump to content

今天多云到晴 明天降温降水 丽水本周天气有点小任性

From Wikipedia, the free encyclopedia
(Redirected from Spatial query)
百度 1976年1月8日在北京逝世。

A spatial database is a general-purpose database (usually a relational database) that has been enhanced to include spatial data that represents objects defined in a geometric space, along with tools for querying and analyzing such data.

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 triangulated irregular networks (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.

Geographic database (or geodatabase) is a georeferenced spatial database, used for storing and manipulating geographic data (or geodata, i.e., data associated with a location on Earth),[a] especially in geographic information systems (GIS). Almost all current relational and object-relational database management systems now have spatial extensions, and some GIS software vendors have developed their own spatial extensions to database management systems.

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 of the structured query language and multimedia standard extending the Simple Features.[3]

Characteristics

[edit]

The core functionality added by a spatial extension to a database is one or more spatial datatypes, which allow for the storage of spatial data as attribute values in a table.[4] Most commonly, a single spatial value would be a geometric primitive (point, line, polygon, etc.) based on the vector data model. The datatypes in most spatial databases are based on the OGC Simple Features specification for representing geometric primitives. Some spatial databases also support the storage of raster data. Because all geographic locations must be specified according to a spatial reference system, spatial databases must also allow for the tracking and transformation of coordinate systems. In many systems, when a spatial column is defined in a table, it also includes a choice of coordinate system, chosen from a list of available systems that is stored in a lookup table.

The second major functionality extension in a spatial database is the addition of spatial capabilities to the query language (e.g., SQL); these give the spatial database the same query, analysis, and manipulation operations that are available in traditional GIS software. In most relational database management systems, this functionality is implemented as a set of new functions that can be used in SQL SELECT statements. Several types of operations are specified by the Open Geospatial Consortium standard:

  • Measurement: Computes line length, polygon area, the distance between geometries, etc.
  • Geoprocessing: Modify existing features to create new ones, for example by creating a buffer around them, intersecting features, etc.
  • 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 that 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

[edit]

A spatial index is used by a spatial database to optimize spatial queries, implementing spatial access methods. Database systems use indices to quickly look up values by sorting data values in a linear (e.g. alphabetical) order; however, this way of indexing data is not optimal for spatial queries in two- or three-dimensional space. Instead, spatial databases use a spatial index designed specifically for multi-dimensional ordering.[5] Common spatial index methods include:

Spatial query

[edit]

A spatial query is a special type of database query supported by spatial databases, including geodatabases. The queries differ from non-spatial SQL queries in several important ways. Two of the most important are that they allow for the use of geometry data types such as points, lines and polygons and that these queries consider the spatial relationship between these geometries.

The function names for queries differ across geodatabases. The following are a few of the functions built into PostGIS, a free geodatabase which is a PostgreSQL extension (the term 'geometry' refers to a point, line, box or other two or three dimensional shape):[7]

Function prototype: functionName (parameter(s)) : return type

  • ST_Distance(geometry, geometry) : number
  • ST_Equals(geometry, geometry) : boolean
  • ST_Disjoint(geometry, geometry) : boolean
  • ST_Intersects(geometry, geometry) : boolean
  • ST_Touches(geometry, geometry) : boolean
  • ST_Crosses(geometry, geometry) : boolean
  • ST_Overlaps(geometry, geometry) : boolean
  • ST_Contains(geometry, geometry) : boolean
  • ST_Length(geometry) : number
  • ST_Area(geometry) : number
  • ST_Centroid(geometry) : geometry
  • ST_Intersection(geometry, geometry) : geometry

Thus, a spatial join between a points layer of cities and a polygon layer of countries could be performed in a spatially-extended SQL statement as:

SELECT * FROM cities, countries WHERE ST_Contains(countries.shape, cities.shape)

The Intersect vector overlay operation (a core element of GIS software) could be replicated as:

SELECT ST_Intersection(veg.shape, soil.shape) int_poly, veg.*, soil.* FROM veg, soil where ST_Intersects(veg.shape, soil.shape)

Spatial database management systems

[edit]

List

[edit]
  • AllegroGraph – a graph database which provides a mechanism for efficient storage and retrieval of two-dimensional geospatial coordinates for Resource Description Framework data.[citation needed] It includes an extension syntax for SPARQL queries.
  • ArangoDB - a multi-model database which provides geoindexing capability.
  • Apache Drill - A MPP SQL query engine for querying large datasets. Drill supports spatial data types and functions [8] similar to PostgreSQL.
  • Esri Geodatabase (Enterprise, Mobile) - a proprietary spatial database structure and logical model that can be implemented on several relational databases, both commercial (Oracle, MS SQL Server, Db2) and open source (PostgreSQL, SQLite)
  • 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.[9]
  • 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[10] and spatial indices[11] as of version 1.3.173 (2025-08-05). An extension called H2GIS available on Maven Central gives full OGC Simple Features support.
  • Any edition of IBM Db2 can be spatially-enabled to implement the OpenGIS spatial functionality with SQL spatial types and functions.
  • 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.[12]
  • MySQL DBMS implements the datatype geometry, plus some spatial functions implemented according to the OpenGIS specifications.[13] 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,[14] with significant enhancements including GeoSPARQL in Open Source Edition 7.2.6, and in Enterprise Edition 8.2.0[15]
  • Oracle Spatial
  • PostgreSQL DBMS (database management system) uses the extension PostGIS to implement OGC-compliant [16] spatial functionality, including standardized datatype geometry and corresponding functions.
  • Redis with the Geo API.[17]
  • RethinkDB supports geospatial indexes in 2D.
  • SAP HANA supports geospatial with SPS08.[18]
  • Smallworld VMDS, the native GE Smallworld GIS database
  • SpaceTime is a commercial spatiotemporal database built on top of the proprietary multidimensional index similar to the k-d tree family, but created using the bottom-up approach and adapted to particular space-time distribution of data.
  • 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.[19]
  • 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.[20]

Table of free systems especially for spatial data processing

[edit]
DBS License Distributed Spatial objects Spatial functions PostgreSQL interface UMN MapServer interface Documentation Modifiable HDFS
Apache Drill Apache License 2.0 yes yes yes - Drill Geospatial Functions Documentation yes no Official Documentation ANSI SQL yes
ArangoDB Apache License 2.0 yes yes yes - capabilities overview query language functions no no official documentation AQL no
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[21] no with MapScript just briefly with C and OME no
Neo4J-spatial[22] 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[23] forking no

See also

[edit]

Notes

[edit]
  1. ^ The term "geodatabase" may also refer specifically to a set of proprietary spatial database formats, Geodatabase (Esri).

References

[edit]
  1. ^ McKee, Lance (2016). "OGC History (detailed)". OGC. Retrieved 2025-08-05. [...] 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. ^ Yue, P.; Tan, Z. "DM-03 - Relational DBMS and their Spatial Extensions". GIS&T Body of Knowledge. UCGIS. Retrieved 5 January 2023.
  5. ^ Zhang, X.; Du, Z. "DM-66 Spatial Indexing". GIS&T Body of Knowledge. UCGIS. Retrieved 5 January 2023.
  6. ^ Güting, Ralf Hartmut; Schneider, Markus (2005). Moving Objects Databases. Morgan Kaufmann. p. 262. ISBN 9780120887996.
  7. ^ "PostGIS Function Reference". PostGIS Manual. OSGeo. Retrieved 4 January 2023.
  8. ^ [1] Drill Geospatial Function Documentation
  9. ^ "Geo queries | Elasticsearch Guide [7.15] | Elastic".
  10. ^ H2 geometry type documentation
  11. ^ H2 create spatial index documentation
  12. ^ "GeoSpatial – MonetDB". 4 March 2014.
  13. ^ "MySQL 5.5 Reference Manual - 12.17.1. Introduction to MySQL Spatial Support". Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  14. ^ OpenLink Software. "9.34. Geometry Data Types and Spatial Index Support". Retrieved October 24, 2018.
  15. ^ OpenLink Software (2025-08-05). "New Releases of Virtuoso Enterprise and Open Source Editions". Retrieved October 24, 2018.
  16. ^ "OGC Certified PostGIS".
  17. ^ "Command reference – Redis".
  18. ^ "SAP Help Portal" (PDF).
  19. ^ "RTREE". tarantool.org. Archived from the original on 2025-08-05.
  20. ^ "HP Vertica Place". 2 December 2015.
  21. ^ "GEOS".
  22. ^ "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". GitHub. 2025-08-05.
  23. ^ "ReQL command reference - RethinkDB".

Further reading

[edit]
[edit]
吃什么可以来月经最快最有效 夏天中暑吃什么药 cp什么意思网络用语 男人吃逍遥丸治什么病 什么是文科什么是理科
低钾血症吃什么药 多吃鱼有什么好处 吃东西没有味道是什么原因 心脏病吃什么好 大便带血是什么原因男
属马与什么属相最配 着床出血是什么样的 焦虑症吃什么好 鸡蛋白过敏指的是什么 喝什么最容易减肥
喝柠檬茶有什么好处 三个羊念什么 怀孕感冒可以吃什么药 偶发性房性早搏是什么意思 卫生纸筒可以做什么
上海的市花是什么花hcv7jop5ns1r.cn 为什么叫汉族hcv9jop4ns2r.cn 今天吃什么菜好呢hcv9jop8ns0r.cn 血热吃什么药可以凉血bfb118.com 馀事勿取什么意思hcv8jop7ns9r.cn
ss是什么意思hcv8jop0ns7r.cn 备孕需要做些什么准备hcv8jop0ns4r.cn 窈窕是什么意思hcv9jop1ns8r.cn 射精太快吃什么好hcv8jop2ns9r.cn 牙疼吃什么食物能缓解hcv7jop9ns5r.cn
根管预备是什么意思bjhyzcsm.com 吃什么祛湿气liaochangning.com 糖醋排骨是什么菜系hcv8jop0ns4r.cn 放鸽子是什么意思hcv8jop5ns2r.cn 开诚布公什么意思hcv8jop3ns6r.cn
失眠吃什么药最好hcv8jop9ns9r.cn 根管预备是什么意思1949doufunao.com 忆苦思甜下一句是什么hcv9jop4ns4r.cn 什么往什么来hcv8jop8ns5r.cn 血糖高可以吃什么水果hcv8jop6ns2r.cn
百度