Spatial functions are a set of functions provided by the OceanBase Database system for processing geographic spatial data. These functions allow users to perform complex spatial queries and analyses at the database level, enabling Geographic Information Systems (GIS) and other applications that rely on spatial data to efficiently store, query, and manipulate spatial data.
Here is an overview of the types of spatial functions available in OceanBase Database:
Types of spatial functions
Spatial function type |
Description |
|---|---|
| Create a geometry value function | Functions for generating instances of geometry data types, such as points, lines, and polygons. |
| Spatial operation functions | Functions for performing basic operations on geometric objects, such as addition, subtraction, and multiplication. |
| Spatial relation functions | Functions for determining spatial relationships between geometric objects, such as intersection, containment, and adjacency. |
| Geometry attribute functions | Functions for retrieving attributes of geometric objects, such as area, length, and boundary. |
| Geometry conversion functions | Functions for converting between geometry data formats, such as from WKB to WKT. |
| Spatial analysis functions | Functions for performing complex spatial processing and analysis, such as buffer analysis, merging, and clipping. |
| Spatial constructor functions | Functions for constructing new spatial data types and geometric shapes. |
| Spatial accessor functions | Functions for accessing components of spatial data, such as vertices of polygons or endpoints of lines. |
| Spatial format conversion functions | Functions for converting between different spatial data representation formats, such as converting geometric objects to text or binary format. |
| Geometry processing functions | Functions for performing various operations and transformations on spatial geometric objects, including shape modification, geometric relationship calculations, spatial queries, and other types of spatial analysis. |
