Content deleted Content added
m →Spatial index: add tag "spatial access methods" |
m →Spatial query{{anchor|Query}}: {{sxhl}} |
||
Line 52:
Function prototype: ''functionName (parameter(s)) : return type ''
* <code>ST_Distance(geometry, geometry) : number</code>
* <code>ST_Equals(geometry, geometry) : boolean</code>
* <code>ST_Disjoint(geometry, geometry) : boolean</code>
* <code>ST_Intersects(geometry, geometry) : boolean</code>
* <code>ST_Touches(geometry, geometry) : boolean</code>
* <code>ST_Crosses(geometry, geometry) : boolean</code>
* <code>ST_Overlaps(geometry, geometry) : boolean</code>
* <code>ST_Contains(geometry, geometry) : boolean</code>
* <code>ST_Length(geometry) : number</code>
* <code>ST_Area(geometry) : number</code>
* <code>ST_[[Centroid]](geometry) : geometry</code>
* <code>ST_Intersection(geometry, geometry) : geometry</code>
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:
The Intersect [[vector overlay]] operation (a core element of GIS software) could be replicated as:
==Spatial database management systems==
|