ℹ️ 读者定位
适合你,如果: 你正在用 SQLite、SpatiaLite、QGIS、Java 或 Python 查询空间数据,想知道每个函数属于哪一层、输入什么、输出什么。
开始前需要: 会执行基础 SQL,并准备一个加载了 mod_spatialite 的 SQLite 连接;如果只看目录,不需要先安装。
读完可以完成: 按函数类别查找 SpatiaLite 5.1.0 函数,判断依赖模块,执行 Geometry、空间关系、坐标转换、RTree 和拓扑验证。
暂时不适合: 需要 PostGIS 全部行为对照、完整 C API 开发或 RasterLite2 深度开发的场景;本文重点是 SQL 函数地图。
在工作中,我们经常遇到一个问题:看到函数名带 ST_,却不知道它到底来自 SQLite、SpatiaLite、GEOS、PROJ 还是 RTTOPO。更麻烦的是,同一个页面里既有 ST_Intersects 这样的几何谓词,也有 CreateSpatialIndex、ImportSHP、WMS_GetMapRequestURL 这样的空间数据库支撑函数。
这篇文章把官方 SpatiaLite 5.1.0 SQL 参考页整理成一张可查、可执行、可解释的函数地图。先用逻辑图建立直觉,再把完整函数名放进附录,最后用 SQL 检查当前构建到底启用了哪些能力。
本文的"全量"采用官方 5.1.0 函数参考的章节口径:包括核心 Geometry 函数,也包括空间元数据、索引、拓扑、网络、GeoPackage、WMS、XmlBLOB 和导入导出等空间支撑模块。它们不是同一种计算,也不一定在每个构建中都可用。
一、先建立一张空间函数能力地图
SpatiaLite 可以理解为 SQLite 文件数据库外面接了一层空间函数注册机制。Geometry 进入 SQL 后,会沿着"输入格式 → Geometry → 属性/关系/运算 → 元数据或外部格式"的链路流动。

SpatiaLite 5.1.0 空间函数能力地图
这张图先记住三件事:
- Geometry 是核心数据对象,不是普通 WKT 文本。
- GEOS 主要负责精确几何关系和派生运算。
- PROJ 负责 CRS/SRID 相关转换,RTTOPO 负责一部分拓扑修复、拆分和网络能力。
1.1 官方文档地址
- SpatiaLite 5.1.0 SQL functions reference:最重要的函数总表,按章节给出名称、签名、模块和摘要。
- SpatiaLite 官方项目主页:源码、版本、下载和文档入口。
- SpatiaLite 5.1.0 Doxygen PDF:底层 C API 和库结构。
- SpatiaLite Cookbook Metadata:空间元数据、GeoTable 和空间索引。
- PROJ.6 support update:PROJ 数据库和新 CRS API 的版本说明。
1.2 函数能不能用,先看底层模块
| 函数来源 | 主要能力 | 常见函数 | 常见不可用原因 |
|---|---|---|---|
| base / SpatiaLite | Geometry 编解码、元数据、基础访问器 | ST_GeomFromText、ST_AsText、ST_SRID、CreateSpatialIndex | 扩展没加载或版本过旧 |
| GEOS | 精确空间关系、距离、缓冲、拓扑运算 | ST_Intersects、ST_Area、ST_Buffer、ST_Intersection | 编译时未启用 GEOS |
| GEOS advanced | 三角剖分、凹包、最小外接结构等 | ST_DelaunayTriangulation、ST_ConcaveHull | GEOS 版本不满足 |
| PROJ | CRS 检查、SRID 转换和 CRS 文本 | ST_Transform、PROJ_AsWKT | 未启用 PROJ 或 PROJ 数据库不可用 |
| RTTOPO | 几何修复、拆分、拓扑和网络 | ST_MakeValid、ST_Split、CreateTopology | 未启用 RTTOPO |
| LibXML2 / RasterLite2 | XML、样式、WMS 和栅格相关支撑 | XB_IsValid、SE_RegisterVectorStyle、WMS_GetMapRequestURL | 可选依赖未编译 |
⚠️ 函数名不是能力证明
看到 ST_Intersects 不代表当前连接一定注册了它。先执行 SELECT spatialite_version(), HasGeos(), HasProj(), HasRtTopo(); 再执行具体函数。
二、Geometry 从哪里来,又会变成什么
2.1 从 WKT、WKB 和外部格式构造 Geometry
构造类函数负责把文本、二进制或外部格式转成数据库能够识别的 Geometry。它们的逻辑不是"把字符串放进列",而是生成带有空间类型和 SRID 语义的 Geometry 值。

Geometry 构造与格式转换逻辑
| 函数家族 | 输入 | 处理 | 输出 |
|---|---|---|---|
| WKT 构造 | WKT 文本、SRID | 解析几何文本 | Geometry |
| WKB 构造 | WKB BLOB、SRID | 解析二进制 | Geometry |
| 点线面构造 | 坐标、半径、网格参数 | 直接生成 Geometry | Point/Line/Polygon/Collection |
| 外部格式构造 | KML、GML、GeoJSON、EWKB、TWKB | 外部格式解析 | Geometry |
常用验证 SQL:
bash
SELECT ST_AsText(ST_GeomFromText('POINT(113 28)', 4490));
SELECT ST_AsText(ST_GeomFromWKB(GeomFromText('POINT(113 28)', 4490)));
SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(113 28)', 4490));
这里一定要注意:WKT 是文本表达,Geometry 是数据库空间对象。对于你前面遇到的 QGIS 能识别表但绘制不出图斑的问题,首先要检查 Geometry 列是否是合法的 SpatiaLite GAIA BLOB。
2.2 输出 WKT、WKB 和互操作格式
输出类函数把 Geometry 转成调试、传输或互操作格式:
- ST_AsText、AsWKT:输出 WKT 文本。
- ST_AsBinary:输出 WKB。
- AsGeoJSON、AsKml、AsGml、AsSVG:面向 Web、GIS 或文档交换。
- AsEWKB、AsEWKT、AsTWKB:保留更多空间维度或压缩语义。
- ST_AsEncodedPolyline、ST_LineFromEncodedPolyline:用于编码折线。
输出为空或报错时,优先检查输入是否 NULL、Geometry BLOB 是否损坏、SRID 是否存在以及可选库是否启用。
2.3 Geometry 检查和访问器
Geometry 进入运算前,建议先检查类型、SRID、维度、有效性和空值,再按具体类型读取坐标、点数、环数或集合成员。

Geometry 检查与访问器逻辑
| 检查/访问类别 | 代表函数 | 输出逻辑 |
|---|---|---|
| 类型和 SRID | ST_GeometryType、ST_SRID、GeometryType | 文本或整数 |
| 维度 | ST_Dimension、ST_NDims、ST_Is3D、ST_IsMeasured | 维度/布尔整数 |
| 质量 | ST_IsEmpty、ST_IsSimple、ST_IsValid、ST_IsValidReason | 布尔值或原因文本 |
| Point | ST_X、ST_Y、ST_Z、ST_M | 坐标数值 |
| LineString | ST_NumPoints、ST_PointN、ST_Length | 点数、点或长度 |
| Polygon | ST_Area、ST_Centroid、ST_ExteriorRing、ST_NumInteriorRing | 面积、Geometry 或环数 |
| 集合 | ST_NumGeometries、ST_GeometryN | 成员数量或成员 Geometry |
bash
SELECT
PK_UID,
ST_GeometryType(Geometry),
ST_SRID(Geometry),
ST_IsValid(Geometry),
ST_IsEmpty(Geometry),
substr(ST_AsText(Geometry), 1, 160)
FROM cun11
LIMIT 1;
三、空间关系、距离和线性参考
3.1 MBR 是候选筛选,GEOS 才是精确关系
SpatiaLite 的空间关系函数有两层:MBR 函数只比较最小外接矩形,速度快但可能产生候选误报;ST_Intersects、ST_Within、ST_Contains 等精确谓词比较真实 Geometry。

MBR 与 GEOS 精确空间谓词
| 关系层 | 代表函数 | 返回 | 使用建议 |
|---|---|---|---|
| MBR 近似关系 | MbrIntersects、MbrWithin、MbrContains、MbrDisjoint | 0/1 | 用于候选过滤 |
| 精确关系 | ST_Intersects、ST_Within、ST_Contains、ST_Touches、ST_Overlaps | 0/1 | 用于最终判断 |
| 距离关系 | ST_Distance、ST_DistanceWithin、PtDistWithin | 数值或 0/1 | 先确认坐标单位 |
同一张表检查重叠图斑时,推荐先利用 idx_cun11_Geometry 做 MBR 候选筛选,再用 ST_Intersects 和 ST_Area(ST_Intersection(...)) 做精确判断。
3.2 距离与线性参考
距离函数和线性参考函数处理的是"多远"和"沿线到哪里":
- ST_Distance:返回两个 Geometry 的距离。
- ST_DistanceWithin:判断是否小于阈值。
- ST_AddMeasure:给线性 Geometry 添加线性 M 值。
- ST_LocateAlong、ST_LocateBetween:按照 M 值定位点或子几何。
- ST_InterpolatePoint、ST_TrajectoryInterpolatePoint:执行线性插值。

距离和线性参考函数逻辑
⚠️ 面积和距离的单位
ST_Area、ST_Length、ST_Distance 使用当前 CRS 的坐标单位。SRID=4490 这类经纬度坐标不能直接把结果当成平方米或米;需要先选择合适的投影 CRS,或采用地理测量函数。
四、GEOS 运算与 RTTOPO 修复
4.1 派生 Geometry
空间操作函数通常输入一个或两个 Geometry,输出新的 Geometry。它们会改变几何形状,但不会自动替你维护业务属性表。

GEOS 与 RTTOPO 派生和修复
| 操作 | 函数 | 输出 |
|---|---|---|
| 集合运算 | ST_Intersection、ST_Difference、ST_Union、ST_SymDifference | 派生 Geometry |
| 形状扩展 | ST_Buffer、ST_ConvexHull、ST_OffsetCurve | 派生 Geometry |
| 线面处理 | ST_LineMerge、ST_Polygonize、ST_BuildArea、ST_CollectionExtract | 派生 Geometry |
| 高级 GEOS | ST_DelaunayTriangulation、ST_ConcaveHull、ST_HausdorffDistance | 三角网、凹包或距离结果 |
| RTTOPO 修复 | ST_MakeValid、ST_SnapToGrid、ST_Split、ST_Subdivide | 修复或拆分 Geometry |
重叠区域查询的核心就是:先 ST_Intersects 判断,再 ST_Intersection 生成重叠 Geometry,最后 ST_Area 计算面积。
4.2 几何质量修复
常见修复链路如下:
bash
SELECT
ST_IsValid(Geometry) AS before_valid,
ST_IsValidReason(Geometry) AS reason,
ST_AsText(ST_MakeValid(Geometry)) AS repaired_wkt
FROM cun11
WHERE PK_UID = 1;
修复函数可能返回 NULL,或者输出 Geometry 类型发生变化。写回数据库前要重新检查 SRID、GeometryType、有效性和业务属性关联。
五、SRID、PROJ 和坐标变换
5.1 先理解 CRS,再调用 ST_Transform
ST_Transform 不是简单地给 Geometry 换一个 SRID 数字,而是根据源 CRS 和目标 CRS 重新计算坐标。源 Geometry 的 SRID、PROJ 数据库、轴顺序和目标 SRID 都会影响结果。

SRID 与 PROJ 坐标转换
常用函数分为三组:
- SRID 检查:SridIsGeographic、SridIsProjected、SridGetProjection、SridGetUnit、SridGetAxis_1_Name。
- CRS 描述:PROJ_AsWKT、PROJ_AsProjString、PROJ_GuessSridFromWKT。
- Geometry 变换:ST_Transform、ST_TransformXY、ST_TransformXYZ、ST_Translate、ScaleCoordinates、RotateCoordinates。
bash
SELECT spatialite_version(), HasProj();
SELECT ST_SRID(ST_Transform(Geometry, 4490))
FROM cun11
LIMIT 1;
5.2 坐标变换和几何平移不是一回事
ST_Transform 改变的是 CRS 语义和坐标值;ST_Translate、ScaleCoordinates、RotateCoordinates 主要是对坐标进行几何变换,不等于坐标参考系转换。不要把两个概念混用。
六、空间元数据、GeoTable 和 RTree
6.1 元数据函数负责让 GIS 认识表
geometry_columns 记录表名、Geometry 列、类型、维度和 SRID;spatial_ref_sys 记录 CRS 定义。AddGeometryColumn、RecoverGeometryColumn 和 DiscardGeometryColumn 比直接手工修改元数据表更安全。

空间元数据与 RTree 索引
常见流程:
- InitSpatialMetaData 创建空间元数据表。
- 创建普通表和 Geometry 列。
- AddGeometryColumn 或 RecoverGeometryColumn 注册 GeoTable。
- CreateSpatialIndex 建立 RTree、索引表和维护触发器。
- 查询时先用 RTree/MBR 找候选,再用精确函数判断。
- 数据结构变化后使用 CheckSpatialIndex、RecoverSpatialIndex、UpdateLayerStatistics 维护。
bash
SELECT InitSpatialMetaData(1);
SELECT CreateSpatialIndex('cun11', 'Geometry');
SELECT CheckSpatialIndex('cun11', 'Geometry');
6.2 MbrCache 和空间索引的区别
RTree 是空间索引结构;MbrCache 是另一种把外包矩形缓存到表或查询流程中的优化方式。两者都不能把 MBR 近似判断当成最终的精确关系。
七、拓扑、网络和空间互操作
7.1 Topology-Geometry 与 Topology-Network
普通 Geometry 更像"每条记录独立保存一块形状";拓扑模型会显式管理节点、边、面和共享关系,适合行政边界一致性、道路网络和拓扑编辑。

Topology-Geometry 与 Topology-Network
- Topology-Geometry:CreateTopology、AddIsoNode、AddIsoEdge、NewEdgesSplit、NewEdgeHeal、GetFaceGeometry、ValidateTopoGeo。
- Topology-Network:CreateNetwork、AddIsoNetNode、AddLink、NewLinkHeal、GetNetNodeByPoint、GetLinkByPoint、ValidSpatialNet。
这类函数不是普通的 ST_Intersection 替代品,它们会创建和维护额外的拓扑/网络元数据表、触发器和关联对象。
7.2 GeoPackage、WMS、XmlBLOB 和格式互操作
Spatialite 5.1.0 还提供大量空间支撑函数:
- FDO/OGR:检查和注册兼容元数据。
- GeoPackage:GeoPackage 元数据、Geometry Binary、空间索引和 Geometry 兼容转换。
- WMS:创建配置表、注册 GetCapabilities/GetMap、生成请求 URL。
- XmlBLOB:保存、压缩、校验和读取 XML、SLD/SE、GPX 或地图配置。
- 导入导出:ImportSHP、ExportSHP、ImportGeoJSON、ExportGeoJSON、ExportKML、ImportDXF。

空间互操作与外部格式
这些函数解决的是数据交换和数据库支撑,不要把它们和 GEOS 的 Geometry 运算混为一谈。
八、用 SQL 检查当前构建到底支持什么
先加载扩展,再执行以下检查:
bash
SELECT spatialite_version();
SELECT HasGeos(), HasGeosAdvanced(), HasProj(), HasProj6(), HasRtTopo();
SELECT HasGeoPackage(), HasTopology(), HasRouting(), HasLibXML2();
验证核心 Geometry:
bash
SELECT ST_AsText(ST_GeomFromText('POINT(113 28)', 4490));
SELECT ST_GeometryType(Geometry), ST_SRID(Geometry), ST_IsValid(Geometry)
FROM cun11 LIMIT 1;
SELECT COUNT(*), SUM(ST_Area(Geometry)) FROM cun11;
验证关系和操作:
bash
SELECT COUNT(*)
FROM cun11 AS a
WHERE ST_Intersects(
a.Geometry,
(SELECT Geometry FROM cun11 WHERE PK_UID = 1)
) = 1;
SELECT ST_AsText(
ST_Intersection(a.Geometry, b.Geometry)
)
FROM cun11 AS a
JOIN cun11 AS b ON a.PK_UID < b.PK_UID
WHERE ST_Intersects(a.Geometry, b.Geometry) = 1
LIMIT 1;
验证索引和 CRS:
bash
SELECT CheckSpatialIndex('cun11', 'Geometry');
SELECT ST_SRID(ST_Transform(Geometry, 4490))
FROM cun11 LIMIT 1;
☑️ 实际函数验证截图待补充
请在加载 mod_spatialite 5.1.0 的 Linux 或 Windows 连接中补充真实 SQL 输出,至少包含版本、HasGeos/HasProj/HasRtTopo、ST_AsText、ST_IsValid、ST_Intersects、ST_Area、ST_Transform 和 CheckSpatialIndex。
建议文件名:截图资源/11-sql-function-verification.png。
九、官方 5.1.0 全量函数目录
下面的函数内容改为按官方章节分组的表格。字段含义如下:
- 序号:全量目录中的连续编号。
- 函数名:官方页面列出的函数名;同一行多个名称表示官方标注的别名。
- 函数功能:按所在官方章节归纳的中文功能。
- 详细说明:保留官方 Syntax 和 Summary,并补充依赖/返回信息,便于直接转成 SQL 验证。
ℹ️ 使用提示
表格是目录和检索入口,不替代官方页面中的完整参数说明。遇到 NULL、可选模块、弃用函数或版本差异时,应以官方 Syntax 和原文说明为准。
9.1 SQL Version Info and build options testing functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 1 | spatialite_version | 版本与编译能力检查 | 语法:spatialite_version( void ) : String;官方摘要:returns the current SpatiaLite version as a text string |
| 2 | spatialite_target_cpu | 版本与编译能力检查 | 语法:spatialite_target_cpu( void ) : String;官方摘要:returns the current SpatiaLite Target CPU as a text string |
| 3 | check_strict_sql_quoting | 版本与编译能力检查 | 语法:rcheck_strict_sql_quoting( void ) : String;官方摘要:returns TRUE or FALSE depending on the actual behavior of current SQLite .; Note :SQLite can effectively enforce strict SQL quoting ( single-quoted text constants and double-quo... |
| 4 | freexl_version | 版本与编译能力检查 | 语法:freexl_version( void ) : String;官方摘要:returns the current FreeXL version as a text string; or NULL if FreeXL is currently unsupported |
| 5 | proj_version | 版本与编译能力检查 | 语法:proj_version( void ) : String ; proj4_version( void ) : Sting;官方摘要:returns the current PROJ version as a text string; or NULL if PROJ is currently unsupported.; Due to historical reasons there are two alias names for the same functionality.; No... |
| 6 | geos_version | 版本与编译能力检查 | 语法:geos_version( void ) : String;官方摘要:returns the current GEOS version as a text string; or NULL if GEOS is currently unsupported |
| 7 | rttopo_version | 版本与编译能力检查 | 语法:rttopo_version( void ) : String;官方摘要:returns the current RTTOPO version as a text string; or NULL if RTTOPO is currently unsupported |
| 8 | libxml2_version | 版本与编译能力检查 | 语法:libxml2_version( void ) : String;官方摘要:returns the current LibXML2 version as a text string; or NULL if LibXML2 is currently unsupported |
| 9 | HasIconv | 版本与编译能力检查 | 语法:HasIconv( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling ICONV |
| 10 | HasMathSQL | 版本与编译能力检查 | 语法:HasMathSQL( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling MATHSQL |
| 11 | HasGeoCallbacks | 版本与编译能力检查 | 语法:HasGeoCallbacks( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOCALLBACKS |
| 12 | HasProj | 版本与编译能力检查 | 语法:HasProj( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling PROJ |
| 13 | HasProj6 | 版本与编译能力检查 | 语法:HasProj6( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling PROJ version 6 or any later |
| 14 | HasGeos | 版本与编译能力检查 | 语法:HasGeos( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOS |
| 15 | HasGeosAdvanced | 版本与编译能力检查 | 语法:HasGeosAdvanced( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOSADVANCED |
| 16 | HasGeos3100 | 版本与编译能力检查 | 语法:HasGeos3100( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOS3100 |
| 17 | HasGeos3110 | 版本与编译能力检查 | 语法:HasGeos3110( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOS3110 |
| 18 | HasGeosTrunk | 版本与编译能力检查 | 语法:HasGeosTrunk( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOSTRUNK |
| 19 | HasGeosReentrant | 版本与编译能力检查 | 语法:HasGeosReentrant( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOSREENTRANT |
| 20 | HasGeosOnlyReentrant | 版本与编译能力检查 | 语法:HasGeosOnlyReentrant( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GEOSONLYREENTRANT |
| 21 | HasMiniZip | 版本与编译能力检查 | 语法:HasMiniZip( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling MINIZIP |
| 22 | HasRtTopo | 版本与编译能力检查 | 语法:HasRtTopo( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling RTTOPO |
| 23 | HasLibXML2 | 版本与编译能力检查 | 语法:HasLibXML2( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling LibXML2 |
| 24 | HasEpsg | 版本与编译能力检查 | 语法:HasEpsg( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling EPSG |
| 25 | HasFreeXL | 版本与编译能力检查 | 语法:HasFreeXL( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling FREEXL |
| 26 | HasGeoPackage | 版本与编译能力检查 | 语法:HasGeoPackage( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling GeoPackage support ( GPKG ) |
| 27 | HasGCP | 版本与编译能力检查 | 语法:HasGCP( void ) : Boolean ; HasGroundControlPoints ( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling Ground Control Points support ( GGP ) |
| 28 | HasTopology | 版本与编译能力检查 | 语法:HasTopology( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling Topology (RTTOPO) support |
| 29 | HasKNN | 版本与编译能力检查 | 语法:HasKNN( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling VirtualKNN (KNN) support |
| 30 | HasRouting | 版本与编译能力检查 | 语法:HasRouting( void ) : Boolean;官方摘要:TRUE if the underlying library was built enabling VirtualRouting support |
9.2 Generic SQL functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 31 | IsInteger | 通用 SQL、类型与字符串处理 | 语法:IsInteger( value Text ) : Integer;官方摘要:Checks a TEXT string testing if it corresponds to an Integer Number.; The function returns 1 if TRUE and 0 if FALSE ; -1 is returned when the argument is not a Text string.; Exa... |
| 32 | IsDecimalNumber | 通用 SQL、类型与字符串处理 | 语法:IsDecimalNumber( value Text ) : Integer;官方摘要:Checks a TEXT string testing if it corresponds to a Decimal Number.; The function returns 1 if TRUE and 0 if FALSE ; -1 is returned when the argument is not a Text string.; Exam... |
| 33 | IsNumber | 通用 SQL、类型与字符串处理 | 语法:IsNumber( value Text ) : Integer;官方摘要:Checks a TEXT string testing if it corresponds to a Number.; The function returns 1 if TRUE and 0 if FALSE ; -1 is returned when the argument is not a Text string.; convenience ... |
| 34 | CastToInteger | 通用 SQL、类型与字符串处理 | 语法:CastToInteger( value Generic ) : Integer;官方摘要:returns the intput value possibly casted to the Integer data-type; NULL if no conversion is possible. |
| 35 | CastToDouble | 通用 SQL、类型与字符串处理 | 语法:CastToDouble( value Generic ) : Double precision;官方摘要:returns the intput value possibly casted to the Double data-type; NULL if no conversion is possible. |
| 36 | CastToText | 通用 SQL、类型与字符串处理 | 语法:CastToText( value Generic ) : Text ; CastToText( value Generic , zero_pad Integer ) : Text;官方摘要:returns the intput value possibly casted to the Text data-type; NULL if no conversion is possible.; If an optional argument zero_pad is passed and the input value is of the Inte... |
| 37 | CastToBlob | 通用 SQL、类型与字符串处理 | 语法:CastToBlob( value Generic ) : Blob ; CastToBlob( value Generic , hex_input Boolean ) : Blob;官方摘要:returns the intput value possibly casted to the BLOB data-type: if the optional argument hex_input is set to TRUE the input value will be expected to correspond to an HexaDecima... |
| 38 | ForceAsNull | 通用 SQL、类型与字符串处理 | 语法:ForceAsNull( val1 Generic , val2 Generic ) : Generic;官方摘要:if val1 and val2 are equal (and of the same data-type) NULL will be returned; otherwise val1 will be returned unchanged, preserving its original data-type. |
| 39 | GetDbObjectScope | 通用 SQL、类型与字符串处理 | 语法:GetDbObjectScope( db-prefix Text , obj-name Text ) : Text;官方摘要:db-prefix can be NULL , and in this case the "MAIN" database will be assumed. obj-name must identify any valid DB-Object ( Table . View , Trigger or Index ). ; Returns a short d... |
| 40 | CreateUUID | 通用 SQL、类型与字符串处理 | 语法:CreateUUID( void ) : Text;官方摘要:returns a Version 4 (random) UUID ( Universally unique identifier ). |
| 41 | MD5Checksum | 通用 SQL、类型与字符串处理 | 语法:MD5Checksum( BLOB / TEXT ) : Text;官方摘要:returns the MD5 checksum corresponding to the input value.;Will return NULL for non-BLOB or non-TEXT input. |
| 42 | MD5TotalChecksum | 通用 SQL、类型与字符串处理 | 语法:MD5TotalChecksum( BLOB / TEXT ) : Text;官方摘要:returns a cumulative MD5 checksum.; aggregate function |
| 43 | EncodeURL | 通用 SQL、类型与字符串处理 | 语法:EncodeURL( url Text ) : Text ; EncodeURL( url Text , charset Text ) : Text;官方摘要:returns the percent encoded URL corresponding to the input value.;Will return NULL for invalid input. the input URL is always assumed to be an UTF-8 string. the output URL will ... |
| 44 | DecodeURL | 通用 SQL、类型与字符串处理 | 语法:DecodeURL( url Text ) : Text ; DecodeURL( url Text , charset Text ) : Text;官方摘要:returns a plain URL from its corresponding percent encoding.;Will return NULL for invalid input. the output URL will be always returned as an UTF-8 string. the input URL will be... |
| 45 | DirNameFromPath | 通用 SQL、类型与字符串处理 | 语法:DirNameFromPath( TEXT ) : Text;官方摘要:returns the Directory Name from a relative or absolute Pathname.;Will return NULL for invalid input of for any simple path lacking a Directory. |
| 46 | FullFileNameFromPath | 通用 SQL、类型与字符串处理 | 语法:FullFileNameFromPath( TEXT ) : Text;官方摘要:returns the Full File Name (including an eventual File Extension) from a relative or absolute Pathname.;Will return NULL for invalid input of for any path lacking a File Name. |
| 47 | FileNameFromPath | 通用 SQL、类型与字符串处理 | 语法:FileNameFromPath( TEXT ) : Text;官方摘要:returns the File Name (excluding an eventual File Extension) from a relative or absolute Pathname.;Will return NULL for invalid input of for any path lacking a File Name. |
| 48 | FileExtFromPath | 通用 SQL、类型与字符串处理 | 语法:FileExtFromPath( TEXT ) : Text;官方摘要:returns the File Extension from a relative or absolute Pathname.;Will return NULL for invalid input of for any path lacking a File Name or when no Extension is present. |
| 49 | RemoveExtraSpaces | 通用 SQL、类型与字符串处理 | 语法:RemoveExtraSpaces( TEXT ) : Text;官方摘要:returns a text string containing no repeated whitespaces ( SPACE or TAB characters).;Will return NULL for invalid input. |
| 50 | MakeStringList | 通用 SQL、类型与字符串处理 | 语法:MakeStringList( value ) : Text ; MakeStringList( value , delimiter text ) : Text;官方摘要:returns a comma-delimited list of integer or text values.; the optional argument delimiter can be used so to specify an alternative delimiter different from comma.; aggregate fu... |
| 51 | eval | 通用 SQL、类型与字符串处理 | 语法:eval( X TEXT [ , Y TEXT ) : Text;官方摘要:Evaluate the SQL text in X . Return the results, using string Y as the separator.; If Y is omitted, use a single space character.; Explicitly setting the environment variable SP... |
| 52 | PostgreSQL_GetLastError | 通用 SQL、类型与字符串处理 | 语法:PostgreSQL_GetLastError() : Text;官方摘要:returns the most recent error message raised by PostgreSQL.; NULL if there is no pending error message available. |
| 53 | PostgreSQL_ResetLastError | 通用 SQL、类型与字符串处理 | 语法:PostgreSQL_ResetLastError() : Integer;官方摘要:Resets the most recent error message raised by PostgreSQL.; Returns 1 on success and 0 on failure.; Only intended for internal usage by the VirtualPostgres extension module. |
| 54 | PostgreSQL_SetLastError | 通用 SQL、类型与字符串处理 | 语法:PostgreSQL_SetLastError( TEXT ) : Integer;官方摘要:Permanently sets the most recent error message raised by PostgreSQL.; Returns 1 on success and 0 on failure; -1 if the argument is not a Text string.; Only intended for internal... |
9.3 Global settings per connection
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 55 | EnableGpkgMode | 空间 SQL 支撑函数 | 语法:EnableGpkgMode( void ) : void;官方摘要:Enables the Geopackage mode ; All connections are initially started with a disabled GPKG mode, that must be explicitly enabled whenever required.; Enabling GPKG mode is a suppor... |
| 56 | DisableGpkgMode | 空间 SQL 支撑函数 | 语法:DisableGpkgMode( void ) : void;官方摘要:Disables the Geopackage mode |
| 57 | GetGpkgMode | 空间 SQL 支撑函数 | 语法:GetGpkgMode( void ) : boolean;官方摘要:Returns TRUE if the Geopackage mode is currently enabled, otherwise FALSE |
| 58 | EnableGpkgAmphibiousMode | 空间 SQL 支撑函数 | 语法:EnableGpkgAmphibiousMode( void ) : void;官方摘要:Enables the Geopackage amphibious mode ; All connections are initially started with a disabled amphibious mode, that must be explicitly enabled whenever required.; Note : GPKG m... |
| 59 | DisableGpkgAmphibiousMode | 空间 SQL 支撑函数 | 语法:DisableGpkgAmphibiousMode( void ) : void;官方摘要:Disables the Geopackage amphibious mode |
| 60 | GetGpkgAmphibiousMode | 空间 SQL 支撑函数 | 语法:GetGpkgAmphibiousMode( void ) : boolean;官方摘要:Returns TRUE if the Geopackage amphibious mode is currently enabled, otherwise FALSE |
| 61 | SetDecimalPrecision | 空间 SQL 支撑函数 | 语法:SetDecimalPrecision( integer ) : void;官方摘要:Explicitly sets the number of decimal digits ( precision ) to be displayed by ST_AsText() for coordinate values: the standard default setting is 6 decimal digits.; Passing any n... |
| 62 | GetDecimalPrecision | 空间 SQL 支撑函数 | 语法:GetDecimalPrecision( void ) : integer;官方摘要:Returns the currently set decimal precision .; A negative precision identifies the default setting. |
| 63 | EnableTinyPoint | 空间 SQL 支撑函数 | 语法:EnableTinyPoint( void ) : void;官方摘要:Enables the TinyPoint BLOB encoding for all Point-Geometries being created.; All connections are initially started with a disabled TinyPoint BLOB encoding, that must be explicit... |
| 64 | DisableTinyPoint | 空间 SQL 支撑函数 | 语法:DisableTinyPoint( void ) : void;官方摘要:Disables the TinyPoint BLOB encoding; all Point-Geometries will then be created applying the classic BLOB-Geometry encoding. |
| 65 | IsTinyPointEnabled | 空间 SQL 支撑函数 | 语法:IsTinyPointEnabled( void ) : boolean;官方摘要:Returns TRUE if the TinyPoint BLOB encoding is currently enabled, otherwise FALSE |
| 66 | BufferOptions_Reset | 空间 SQL 支撑函数 | 语法:BufferOptions_Reset( void ) : boolean;官方摘要:Will reset all BufferOptions to their initial default settings.; Returns TRUE on success, FALSE on failure. |
| 67 | BufferOptions_SetEndCapStyle | 空间 SQL 支撑函数 | 语法:BufferOptions_SetEndCapStyle( style Text ) : boolean;官方摘要:Will set the current EndCap Style. Accepted styles ( case insensitive ) are: ROUND , FLAT , SQUARE ; Returns TRUE on success, FALSE on failure. |
| 68 | BufferOptions_GetEndCapStyle | 空间 SQL 支撑函数 | 语法:BufferOptions_GetEndCapStyle( void ) : string;官方摘要:Will return the name of the currently set EndCap Style.; NULL on failure. |
| 69 | BufferOptions_SetJoinStyle | 空间 SQL 支撑函数 | 语法:BufferOptions_SetJoinStyle( style Text ) : boolean;官方摘要:Will set the current Join Style. Accepted styles ( case insensitive ) are: ROUND , MITRE or MITER , BEVEL ; Returns TRUE on success, FALSE on failure. |
| 70 | BufferOptions_GetJoinStyle | 空间 SQL 支撑函数 | 语法:BufferOptions_GetJoinStyle( void ) : string;官方摘要:Will return the name of the currently set Join Style.; NULL on failure. |
| 71 | BufferOptions_SetMitreLimit | 空间 SQL 支撑函数 | 语法:BufferOptions_SetMitreLimit( limit Double ) : boolean;官方摘要:Will set the current Mitre Limit value.; Returns TRUE on success, FALSE on failure. |
| 72 | BufferOptions_GetMitreLimit | 空间 SQL 支撑函数 | 语法:BufferOptions_GetMitreLimit( void ) : double;官方摘要:Will return the value of the currently set Mitre Limit.; NULL on failure. |
| 73 | BufferOptions_SetQuadrantSegments | 空间 SQL 支撑函数 | 语法:BufferOptions_SetQuadrantSegments( points Integer ) : boolean;官方摘要:Will set the current Quadrant Segments value.; Returns TRUE on success, FALSE on failure. |
| 74 | BufferOptions_GetQuadrantSegments | 空间 SQL 支撑函数 | 语法:BufferOptions_GetQuadrantSegments( void ) : integer;官方摘要:Will return the value of the currently set Quadrant Segments.; NULL on failure. |
9.4 SQL functions manipulating Sequences
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 75 | sequence_nextval | 序列值管理 | 语法:sequence_nextval ( seq_name Text ) : Integer;官方摘要:advances to the next value of the Sequence, which is then returned.; Will return NULL if any error occurred. |
| 76 | sequence_currval | 序列值管理 | 语法:sequence_currval ( seq_name Text ) : Integer;官方摘要:returns the value most recently obtained by sequence_nextval() for the Sequence identified by seq_name ; Will return NULL if the Sequence identified by seq_name has not yet been... |
| 77 | sequence_lastval | 序列值管理 | 语法:sequence_lastval ( void ) : Integer;官方摘要:returns the value most recently obtained by sequence_nextval() ; Will return NULL if sequence_nextval() has not yet been used. |
| 78 | sequence_setval | 序列值管理 | 语法:sequence_setval ( seq_name Text , value Integer ) : Integer;官方摘要:sets the current value for the Sequence identified by seq_name ; if the Sequence doesn't yet exist it will be created on-the-fly.; Will return value on success or NULL on failure. |
9.5 SQL math functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 79 | Abs | 数学运算 | 语法:Abs( x Double precision ) : Double precision;官方摘要:returns the absolute value of x |
| 80 | Acos | 数学运算 | 语法:Acos( x Double precision ) : Double precision;官方摘要:returns the arc cosine of x , that is, the value whose cosine is x ; returns NULL if x is not within the range -1 to 1 |
| 81 | Asin | 数学运算 | 语法:Asin( x Double precision ) : Double precision;官方摘要:returns the arc sine of x , that is, the value whose sine is x ; returns NULL if x is not in the range -1 to 1 |
| 82 | Atan | 数学运算 | 语法:Atan( x Double precision ) : Double precision;官方摘要:returns the arc tangent of x , that is, the value whose tangent is x |
| 83 | Atan2 | 数学运算 | 语法:Atan2( y Double precision , x Double precision ) : Double precision;官方摘要:returns the principal value of the arc tangent of y/x in radians, using the signs of the two arguments to determine the quadrant of the result. The return value is in the range[... |
| 84 | Ceil;Ceiling | 数学运算 | 语法:Ceil( x Double precision ) : Double precision ; Ceiling( x Double precision ) : Double precision;官方摘要:returns the smallest integer value not less than x |
| 85 | Cos | 数学运算 | 语法:Cos( x Double precision ) : Double precision;官方摘要:returns the cosine of x , where x is given in radians |
| 86 | Cot | 数学运算 | 语法:Cot( x Double precision ) : Double precision;官方摘要:returns the cotangent of x , where x is given in radians |
| 87 | Degrees | 数学运算 | 语法:Degrees( x Double precision ) : Double precision;官方摘要:returns the argument x , converted from radians to degrees |
| 88 | Exp | 数学运算 | 语法:Exp( x Double precision ) : Double precision;官方摘要:returns the value of e (the base of natural logarithms) raised to the power of x ; the inverse of this function is Log() (using a single argument only) or Ln() |
| 89 | Floor | 数学运算 | 语法:Floor( x Double precision ) : Double precision;官方摘要:returns the largest integer value not greater than x |
| 90 | Ln / Log | 数学运算 | 语法:Ln( x Double precision ) : Double precision ; Log( x Double precision ) : Double precision;官方摘要:returns the natural logarithm of x ; that is, the base- e logarithm of x ; If x is less than or equal to 0, then NULL is returned |
| 91 | Log | 数学运算 | 语法:Log( x Double precision , b Double precision ) : Double precision;官方摘要:returns the logarithm of x to the base b ; If x is less than or equal to 0, or if b is less than or equal to 1, then NULL is returned; Log(x, b) is equivalent to Log(x) / Log(b) |
| 92 | Log2 | 数学运算 | 语法:Log2( x Double precision ) : Double precision;官方摘要:returns the base-2 logarithm of x ; Log2(x) is equivalent to Log(x) / Log(2) |
| 93 | Log10 | 数学运算 | 语法:Log10( x Double precision ) : Double precision;官方摘要:returns the base-10 logarithm of x ; Log10(x) is equivalent to Log(x) / Log(10) |
| 94 | PI | 数学运算 | 语法:PI( void ) : Double precision;官方摘要:returns the value of PI |
| 95 | Pow / Power | 数学运算 | 语法:Pow( x Double precision , y Double precision ) : Double precision ; Power( x Double precision , y Double precision ) : Double precision;官方摘要:returns the value of x raised to the power of y |
| 96 | Radians | 数学运算 | 语法:Radians( x Double precision ) : Double precision;官方摘要:returns the argument x , converted from degrees to radians |
| 97 | Sign | 数学运算 | 语法:Sign( x Double precision ) : Double precision;官方摘要:returns the sign of the argument as -1, 0, or 1, depending on whether x is negative, zero, or positive. |
| 98 | Sin | 数学运算 | 语法:Sin( x Double precision ) : Double precision;官方摘要:returns the sine of x , where x is given in radians |
| 99 | Sqrt | 数学运算 | 语法:Sqrt( x Double precision ) : Double precision;官方摘要:returns the square root of a non-negative number x |
| 100 | Stddev_pop | 数学运算 | 语法:Stddev_pop( x Double precision ) : Double precision;官方摘要:returns the population standard deviation of the input values; aggregate function |
| 101 | Stddev_samp | 数学运算 | 语法:Stddev_samp( x Double precision ) : Double precision;官方摘要:returns the sample standard deviation of the input values; aggregate function |
| 102 | Tan | 数学运算 | 语法:Tan( x Double precision ) : Double precision;官方摘要:returns the tangent of x , where x is given in radians |
| 103 | Var_pop | 数学运算 | 语法:Var_pop( x Double precision ) : Double precision;官方摘要:returns the population variance of the input values ( square of the population standard deviation ); aggregate function |
| 104 | Var_samp | 数学运算 | 语法:Var_samp( x Double precision ) : Double precision;官方摘要:returns the sample variance of the input values ( square of the sample standard deviation ); aggregate function |
9.6 SQL functions reporting PROJ / GEOS / RTTOPO errors and warnings
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 105 | PROJ_GetLastErrorMsg | 底层模块错误和警告读取 | 语法:PROJ_GetLastErrorMsg( void ) : String;官方摘要:PROJ;Will return the most recent error message returned by PROJ (if any).; NULL will be returned if there is no pending PROJ error.; Note : this SQL function will be available o... |
| 106 | GEOS_GetLastWarningMsg | 底层模块错误和警告读取 | 语法:GEOS_GetLastWarningMsg( void ) : String;官方摘要:GEOS;Will return the most recent warning message returned by GEOS (if any).; NULL will be returned if there is no pending GEOS warning. |
| 107 | GEOS_GetLastErrorMsg | 底层模块错误和警告读取 | 语法:GEOS_GetLastErrorMsg( void ) : String;官方摘要:GEOS;Will return the most recent error message returned by GEOS (if any).; NULL will be returned if there is no pending GEOS error. |
| 108 | GEOS_GetLastAuxErrorMsg | 底层模块错误和警告读取 | 语法:GEOS_GetLastAuxErrorMsg( void ) : String;官方摘要:GEOS;Will return the most recent error message (auxiliary) returned by GEOS (if any).; NULL will be returned if there is no pending GEOS (auxiliary) error. |
| 109 | GEOS_GetCriticalPointFromMsg | 底层模块错误和警告读取 | 语法:GEOS_GetCriticalPointFromMsg( void ) : Point ; GEOS_GetCriticalPointFromMsg( SRID Integer ) : Point;官方摘要:GEOS;Will (possibly) return a Point Geometry extracted from the latest error / warning message returned by GEOS.; NULL will be returned if there is no pending GEOS message, or i... |
| 110 | RTTOPO_GetLastWarningMsg | 底层模块错误和警告读取 | 语法:RTTOPO_GetLastWarningMsg( void ) : String;官方摘要:RTTOPO;Will return the most recent warning message returned by RTTOPO (if any).; NULL will be returned if there is no pending RTTOPO warning. |
| 111 | RTTOPO_GetLastErrorMsg | 底层模块错误和警告读取 | 语法:RTTOPO_GetLastErrorMsg( void ) : String;官方摘要:RTTOPO;Will return the most recent error message returned by RTTOPO (if any).; NULL will be returned if there is no pending RTTOPO error. |
9.7 SQL length/distance unit-conversion functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 112 | Kilometer | 长度与距离单位换算 | 语法:CvtToKm( x Double precision ) : Double precision ; CvtFromKm( x Double precision ) : Double precision;官方摘要:meters / kilometers |
| 113 | Decimeter | 长度与距离单位换算 | 语法:CvtToDm( x Double precision ) : Double precision ; CvtFromDm( x Double precision ) : Double precision;官方摘要:meters / decimeters |
| 114 | Centimeter | 长度与距离单位换算 | 语法:CvtToCm( x Double precision ) : Double precision ; CvtFromCm( x Double precision ) : Double precision;官方摘要:meters / centimeters |
| 115 | Millimeter | 长度与距离单位换算 | 语法:CvtToMm( x Double precision ) : Double precision ; CvtFromMm( x Double precision ) : Double precision;官方摘要:meters / millimeters |
| 116 | International Nautical Mile | 长度与距离单位换算 | 语法:CvtToKmi( x Double precision ) : Double precision ; CvtFromKmi( x Double precision ) : Double precision;官方摘要:meters / international nautical miles |
| 117 | International Inch | 长度与距离单位换算 | 语法:CvtToIn( x Double precision ) : Double precision ; CvtFromIn( x Double precision ) : Double precision;官方摘要:meters / international inches |
| 118 | International Foot | 长度与距离单位换算 | 语法:CvtToFt( x Double precision ) : Double precision ; CvtFromFt( x Double precision ) : Double precision;官方摘要:meters / international feet |
| 119 | International Yard | 长度与距离单位换算 | 语法:CvtToYd( x Double precision ) : Double precision ; CvtFromYd( x Double precision ) : Double precision;官方摘要:meters / international yards |
| 120 | International Statute Mile | 长度与距离单位换算 | 语法:CvtToMi( x Double precision ) : Double precision ; CvtFromMi( x Double precision ) : Double precision;官方摘要:meters / international statute miles |
| 121 | International Fathom | 长度与距离单位换算 | 语法:CvtToFath( x Double precision ) : Double precision ; CvtFromFath( x Double precision ) : Double precision;官方摘要:meters / international fathoms |
| 122 | International Chain | 长度与距离单位换算 | 语法:CvtToCh( x Double precision ) : Double precision ; CvtFromCh( x Double precision ) : Double precision;官方摘要:meters / international chains |
| 123 | International Link | 长度与距离单位换算 | 语法:CvtToLink( x Double precision ) : Double precision ; CvtFromLink( x Double precision ) : Double precision;官方摘要:meters / international links |
| 124 | U.S. Inch | 长度与距离单位换算 | 语法:CvtToUsIn( x Double precision ) : Double precision ; CvtFromUsIn( x Double precision ) : Double precision;官方摘要:meters / U.S. inches |
| 125 | U.S. Foot | 长度与距离单位换算 | 语法:CvtToUsFt( x Double precision ) : Double precision ; CvtFromUsFt( x Double precision ) : Double precision;官方摘要:meters / U.S. feet |
| 126 | U.S. Yard | 长度与距离单位换算 | 语法:CvtToUsYd( x Double precision ) : Double precision ; CvtFromUsYd( x Double precision ) : Double precision;官方摘要:meters / U.S. yards |
| 127 | U.S. Statute Mile | 长度与距离单位换算 | 语法:CvtToUsMi( x Double precision ) : Double precision ; CvtFromUsMi( x Double precision ) : Double precision;官方摘要:meters / U.S. statute miles |
| 128 | U.S. Chain | 长度与距离单位换算 | 语法:CvtToUsCh( x Double precision ) : Double precision ; CvtFromUsCh( x Double precision ) : Double precision;官方摘要:meters / U.S. chains |
| 129 | Indian Foot | 长度与距离单位换算 | 语法:CvtToIndFt( x Double precision ) : Double precision ; CvtFromIndFt( x Double precision ) : Double precision;官方摘要:meters / indian feet |
| 130 | Indian Yard | 长度与距离单位换算 | 语法:CvtToIndYd( x Double precision ) : Double precision ; CvtFromIndYd( x Double precision ) : Double precision;官方摘要:meters / indian yards |
| 131 | Indian Chain | 长度与距离单位换算 | 语法:CvtToIndCh( x Double precision ) : Double precision ; CvtFromIndCh( x Double precision ) : Double precision;官方摘要:meters / indian chains |
9.8 SQL conversion functions from DD/DMS notations (longitude/latitude)
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 132 | DD to DMS | 经纬度 DD/DMS 格式换算 | 语法:LongLatToDMS( longitude Double precision , latitude Double precision ) : String ; LongLatToDMS( longitude Double precision , latitude Double precision , decimal_digits Integer ) : String;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 133 | DMS to DD | 经纬度 DD/DMS 格式换算 | 语法:LongitudeFromDMS( dms_expression String ) : Double precision ; LatitudeFromDMS( dms_expression String ) : Double precision;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
9.9 SQL utility functions for BLOB objects
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 134 | IsZipBlob | BLOB 类型识别和文件读写 | 语法:IsZipBlob( content BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 135 | IsPdfBlob | BLOB 类型识别和文件读写 | 语法:IsPdfBlob( content BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 136 | IsGifBlob | BLOB 类型识别和文件读写 | 语法:IsGifBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 137 | IsPngBlob | BLOB 类型识别和文件读写 | 语法:IsPngBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 138 | IsTiffBlob | BLOB 类型识别和文件读写 | 语法:IsTiffBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 139 | IsJpegBlob | BLOB 类型识别和文件读写 | 语法:IsJpegBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 140 | IsExifBlob | BLOB 类型识别和文件读写 | 语法:IsExifBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 141 | IsExifGpsBlob | BLOB 类型识别和文件读写 | 语法:IsExifGpsBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 142 | IsWebpBlob | BLOB 类型识别和文件读写 | 语法:IsWebpBlob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 143 | IsJP2Blob | BLOB 类型识别和文件读写 | 语法:IsJP2Blob( image BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if this BLOB object correspond... |
| 144 | GetMimeType | BLOB 类型识别和文件读写 | 语法:GetMimeType( payload BLOB ) : String;官方摘要:The return type is Text, and could be one of: image/gif , image/png , image/jpeg , image/jp2 , image/tiff , image/svg+xml , application/xml , application/zip , application/pdf ... |
| 145 | IsGeometryBlob | BLOB 类型识别和文件读写 | 语法:IsGeometryBlob( content BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if the BLOB argument is a vali... |
| 146 | IsCompressedGeometryBlob | BLOB 类型识别和文件读写 | 语法:IsCompressedGeometryBlob( content BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if the BLOB argument is a vali... |
| 147 | IsTinyPointBlob | BLOB 类型识别和文件读写 | 语法:IsTinyPointBlob( content BLOB ) : Integer;官方摘要:The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL or non-BLOB argument.; TRUE if the BLOB argument is a vali... |
| 148 | TinyPointEncode | BLOB 类型识别和文件读写 | 语法:TinyPointEncode( content POINT BLOB-GEOMETRY ) : BLOB-TinyPoint;官方摘要:If the input argument corresponds to a valid BLOB-GEOMETRY of the POINT , POINT Z , POINT M or POINT ZM type the corresponding BLOB-TinyPoint will be returned.; In any other cas... |
| 149 | GeometryPointEncode | BLOB 类型识别和文件读写 | 语法:GeometryPointEncode( content BLOB-TinyPoint ) : BLOB-GEOMETRY;官方摘要:If the input argument corresponds to a valid BLOB-TinyPoint the corresponding BLOB-GEOMETRY will be returned.; In any other case the input argument will be retuned. |
| 150 | BlobFromFile | BLOB 类型识别和文件读写 | 语法:BlobFromFile( filepath String ) : BLOB;官方摘要:If the filepath is valid, and the existing file can be successfully read, then the whole file content will be returned as a BLOB value.; Otherwise NULL will be returned.; Please... |
| 151 | BlobToFile | BLOB 类型识别和文件读写 | 语法:BlobToFile( binary-data BLOB , filepath String ) : Integer;官方摘要:If binary-data is of the BLOB-type, and the filepath is valid (i.e. accessible in write/create mode), then the corresponding file will be created/overwritten with the binary-dat... |
| 152 | CountUnsafeTriggers | BLOB 类型识别和文件读写 | 语法:CountUnsafeTriggers( ) : Integer;官方摘要:This SQL function checks if the currently connected DB contains any potentially malicious Triggers; carefully checking this conditions is a minimal precaution expected to be alw... |
9.10 SQL utility functions non-standard for geometric objects
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 153 | GeomFromExifGpsBlob | 空间 SQL 支撑函数 | 语法:GeomFromExifGpsBlob( image BLOB ) : Geometry;官方摘要:base;a POINT Geometry will be returned representing the GPS long/lat contained within EXIF-GPS metadata for the BLOB image; NULL will be returned if for any reason it's not poss... |
| 154 | ST_Point | 空间 SQL 支撑函数 | 语法:ST_Point( x Double precision , y Double precision ) : Geometry;官方摘要:base;simply an alias-name for MakePoint() ; Please note : the SRID argument is never supported by ST_Point() |
| 155 | MakePoint | 空间 SQL 支撑函数 | 语法:MakePoint( x Double precision , y Double precision , , SRID Integer ) : Geometry;官方摘要:base;a Geometry will be returned representing the POINT defined by x y coordinates |
| 156 | MakePointZ | 空间 SQL 支撑函数 | 语法:MakePointZ( x Double precision , y Double precision , z Double precision , , SRID Integer ) : Geometry;官方摘要:base;a Geometry will be returned representing the POINT Z defined by x y z coordinates |
| 157 | MakePointM | 空间 SQL 支撑函数 | 语法:MakePointM( x Double precision , y Double precision , m Double precision , , SRID Integer ) : Geometry;官方摘要:base;a Geometry will be returned representing the POINT M defined by x y m coordinates |
| 158 | MakePointZM | 空间 SQL 支撑函数 | 语法:MakePointZM( x Double precision , y Double precision , z Double precision , m Double precision , SRID Integer ) : Geometry;官方摘要:base;a Geometry will be returned representing the POINT ZM defined by x y z m coordinates |
| 159 | MakeLine | 空间 SQL 支撑函数 | 语法:MakeLine( pt1 PointGeometry , pt2 PointGeometry ) : LinestringGeometry;官方摘要:base;a Linestring Geometry will be returned representing the segment connecting pt1 to pt2 ; NULL will be returned if any error is encountered |
| 160 | MakeLine | 空间 SQL 支撑函数 | 语法:MakeLine( geom PointGeometry ) : LinestringGeometry;官方摘要:base;a Linestring Geometry will be returned connecting all the input Points (accordingly to input sequence); aggregate function ; NULL will be returned if any error is encountered |
| 161 | MakeLine | 空间 SQL 支撑函数 | 语法:MakeLine( geom MultiPointGeometry , direction Boolean ) : LinestringGeometry;官方摘要:base;a Linestring Geometry will be returned connecting all the input Points (accordingly to input sequence); direction=FALSE implies reverse order .; Please note : similar to th... |
| 162 | MakeCircle | 空间 SQL 支撑函数 | 语法:MakeCircle( cx Double precision , cy Double precision , radius Double precision , SRID Integer \[ , step Double precision ] ) : Geometry;官方摘要:base;will return a closed LINESTRING approximating the Circle defined by cx, cy and radius .; The optional argument step if specified defines how many points will be interpolate... |
| 163 | MakeEllipse | 空间 SQL 支撑函数 | 语法:MakeEllipse( cx Double precision , cy Double precision , x_axis Double precision , y_axis Double precision , SRID Integer \[ , step Double precision ] ) : Geometry;官方摘要:base;will return a closed LINESTRING approximating the Ellipse defined by cx, cy and x_axis, y_axis .; The optional argument step if specified defines how many points will be in... |
| 164 | MakeArc | 空间 SQL 支撑函数 | 语法:MakeArc( cx Double precision , cy Double precision , radius Double precision , start Double precision , stop Double precision , SRID Integer \[ , step Double precision ] ) : Geometry;官方摘要:base;will return a LINESTRING approximating the Circular Arc defined by cx, cy and radius ; the arc's extremities will be defined by start, stop angles expressed in degrees.; Th... |
| 165 | MakeEllipticArc | 空间 SQL 支撑函数 | 语法:MakeEllipticArc( cx Double precision , cy Double precision , x_axis Double precision , y_axis Double precision , start Double precision , stop Double precision , SRID Integer \[ , step Double precision ] ) : Geometry;官方摘要:base;will return a LINESTRING approximating the Elliptic Arc defined by cx, cy and x_axis, y_axis ; the arc's extremities will be defined by start, stop angles expressed in degr... |
| 166 | MakeCircularSector | 空间 SQL 支撑函数 | 语法:MakeCircularSector( cx Double precision , cy Double precision , radius Double precision , start Double precision , stop Double precision , SRID Integer \[ , step Double precision ] ) : Geometry;官方摘要:base;will return a POLYGON approximating the Circular Sector defined by cx, cy and radius ; the arc's extremities will be defined by start, stop angles expressed in degrees.; Th... |
| 167 | MakeEllipticSector | 空间 SQL 支撑函数 | 语法:MakeEllipticSector( cx Double precision , cy Double precision , x_axis Double precision , y_axis Double precision , start Double precision , stop Double precision , SRID Integer \[ , step Double precision ] ) : Geo...;官方摘要:base;will return a POLYGON approximating the Elliptic Sector defined by cx, cy and x_axis, y_axis ; the arc's extremities will be defined by start, stop angles expressed in degr... |
| 168 | MakeCircularStripe | 空间 SQL 支撑函数 | 语法:MakeCircularStripe( cx Double precision , cy Double precision , radius_1 Double precision , radius_2 Double precision , start Double precision , stop Double precision , SRID Integer \[ , step Double precision ] ) :...;官方摘要:base;will return a POLYGON approximating the Circular Stripe delimited by two arcs sharing the same Centre cx , cy but having different radii radius_1 , radius_2 ; the ar... |
| 169 | SquareGrid | 空间 SQL 支撑函数 | 语法:SquareGrid( geom ArealGeometry , size Double precision , mode Integer , \[ origin PointGeometry ] ) : Geometry ; ST_SquareGrid( geom ArealGeometry , size Double precision , mode Integer , \[ origin PointGeometry ...;官方摘要:GEOS;return a grid of square cells (having the edge length of size ) precisely covering the input Geometry.; The specific Type of returned Geometry is controlled by the mode att... |
| 170 | TriangularGrid | 空间 SQL 支撑函数 | 语法:TriangularGrid( geom ArealGeometry , size Double precision , mode Integer , \[ origin PointGeometry ] ) : Geometry ; ST_TriangularGrid( geom ArealGeometry , size Double precision [ , mode Integer , [ origin PointGe...;官方摘要:GEOS;return a grid of triangular cells (having the edge length of size ) precisely covering the input Geometry.; The specific Type of returned Geometry is controlled by the mode... |
| 171 | HexagonalGrid | 空间 SQL 支撑函数 | 语法:HexagonalGrid( geom ArealGeometry , size Double precision , mode Integer , \[ origin PointGeometry ] ) : Geometry ; ST_HexagonalGrid( geom ArealGeometry , size Double precision [ , mode Integer , [ origin PointGeom...;官方摘要:GEOS;return a grid of hexagonal cells (having the edge length of size ) precisely covering the input Geometry.; The specific Type of returned Geometry is controlled by the mode ... |
| 172 | BuildMbr | 空间 SQL 支撑函数 | 语法:BuildMbr( x1 Double precision , y1 Double precision , x2 Double precision , y2 Double precision , SRID Integer ) : Geometry;官方摘要:base; x1 y1 and x2 y2 are assumed to be Points identifying a line segment; then a Geometry will be returned representing the MBR for this line segment |
| 173 | BuildCircleMbr | 空间 SQL 支撑函数 | 语法:BuildCircleMbr( x Double precision , y Double precision , radius Double precision , SRID Integer ) : Geometry;官方摘要:base; x y is assumed to be the center of a circle of given radius ; then a Geometry will be returned representing the MBR for this circle |
| 174 | Extent | 空间 SQL 支撑函数 | 语法:Extent( geom Geometry ) : Geometry;官方摘要:base;return a geometric object representing the bounding box that encloses a set of input values; aggregate function |
| 175 | ToGARS | 空间 SQL 支撑函数 | 语法:ToGARS( geom Geometry ) : String;官方摘要:base;geom is expected to represent a POINT (longitude and latitude coordinates); the corresponding GARS area designation code will be returned.; NULL will be returned if any err... |
| 176 | GARSMbr | 空间 SQL 支撑函数 | 语法:GARSMbr( code String ) : Geometry;官方摘要:base;code is assumed to represent a valid GARS area designation code; a Geometry will be returned representing the MBR for the corresponding GARS area.; NULL will be returned if... |
| 177 | MbrMinX | 空间 SQL 支撑函数 | 语法:MbrMinX( geom Geometry ) : Double precision ; ST_MinX( geom Geometry ) : Double precision;官方摘要:base;return the x-coordinate for geom MBR's leftmost side as a double precision number.; NULL will be returned if geom isn't a valid Geometry. |
| 178 | MbrMinY | 空间 SQL 支撑函数 | 语法:MbrMinY( geom Geometry ) : Double precision ; ST_MinY( geom Geometry ) : Double precision;官方摘要:base;return the y-coordinate for geom MBR's lowermost side as a double precision number.; NULL will be returned if geom isn't a valid Geometry. |
| 179 | MbrMaxX | 空间 SQL 支撑函数 | 语法:MbrMaxX( geom Geometry ) : Double precision ; ST_MaxX( geom Geometry ) : Double precision;官方摘要:base;return the x-coordinate for geom MBR's rightmost side as a double precision number.; NULL will be returned if geom isn't a valid Geometry. |
| 180 | MbrMaxY | 空间 SQL 支撑函数 | 语法:MbrMaxY( geom Geometry ) : Double precision ; ST_MaxY( geom Geometry ) : Double precision;官方摘要:base;return the y-coordinate for geom MBR's uppermost side as a double precision number.; NULL will be returned if geom isn't a valid Geometry. |
| 181 | MinZ | 空间 SQL 支撑函数 | 语法:ST_MinZ( geom Geometry ) : Double precision ; ST_MinZ( geom Geometry , nodata-value Double ) : Double precision;官方摘要:base;return the minimum Z-coordinate value for geom as a double precision number. if the optional argument nodata-value is set, then any NODATA value eventually found will be ig... |
| 182 | MaxZ | 空间 SQL 支撑函数 | 语法:ST_MaxZ( geom Geometry ) : Double precision ; ST_MaxZ( geom Geometry , nodata-value Double ) : Double precision;官方摘要:base;return the maximum Z-coordinate value for geom as a double precision number. if the optional argument nodata-value is set, then any NODATA value eventually found will be ig... |
| 183 | MinM | 空间 SQL 支撑函数 | 语法:ST_MinM( geom Geometry ) : Double precision ; ST_MinM( geom Geometry , nodata-value Double ): Double precision;官方摘要:base;return the minimum M-coordinate value for geom as a double precision number. if the optional argument nodata-value is set, then any NODATA value eventually found will be ig... |
| 184 | MaxM | 空间 SQL 支撑函数 | 语法:ST_MaxM( geom Geometry ) : Double precision ; ST_MaxM( geom Geometry , nodata-value Double ) : Double precision;官方摘要:base;return the maximum M-coordinate value for geom as a double precision number. if the optional argument nodata-value is set, then any NODATA value eventually found will be ig... |
9.11 SQL functions for constructing a geometric object given its Well-known Text Representation
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 185 | GeomFromText | 从 WKT 构造 Geometry | 语法:GeomFromText( wkt String , SRID Integer ) : Geometry ; ST_GeomFromText( wkt String , SRID Integer ) : Geometry;官方摘要:X;base;construct a geometric object given its Well-known text Representation |
| 186 | ST_WKTToSQL | 从 WKT 构造 Geometry | 语法:ST_WKTToSQL( wkt String ) : Geometry;官方摘要:base;SQL/MM compliant: simply an alias name for ST_GeomFromText ; Please note : SRID=0 is always assumed. |
| 187 | PointFromText | 从 WKT 构造 Geometry | 语法:PointFromText( wktPoint String , SRID Integer ) : Point ; ST_PointFromText( wktPoint String , SRID Integer ) : Point;官方摘要:X;base;construct a Point |
| 188 | LineFromText / LineStringFromText | 从 WKT 构造 Geometry | 语法:LineFromText( wktLineString String , SRID Integer ) : Linestring ; ST_LineFromText( wktLineString String , SRID Integer ) : Linestring ; LineStringFromText( wktLineString String , SRID Integer ) : Linestri...;官方摘要:X;base;construct a Linestring |
| 189 | PolyFromText / PolygonFromText | 从 WKT 构造 Geometry | 语法:PolyFromText( wktPolygon String , SRID Integer ) : Polygon ; ST_PolyFromText( wktPolygon String , SRID Integer ) : Polygon ; PolygonFromText( wktPolygon String , SRID Integer ) : Polygon ; ST_PolygonFromTe...;官方摘要:X;base;construct a Polygon |
| 190 | MPointFromText / MultiPointFromText | 从 WKT 构造 Geometry | 语法:MPointFromText( wktMultiPoint String , SRID Integer ) : MultiPoint ; ST_MPointFromText( wktMultiPoint String , SRID Integer ) : MultiPoint ; MultiPointFromText( wktMultiPoint String , SRID Integer ) : Mult...;官方摘要:X;base;construct a MultiPoint |
| 191 | MLineFromText / MultiLineStringFromText | 从 WKT 构造 Geometry | 语法:MLineFromText( wktMultiLineString String , SRID Integer ) : MultiLinestring ; ST_MLineFromText( wktMultiLineString String , SRID Integer ) : MultiLinestring ; MultiLineStringFromText( wktMultiLineString String...;官方摘要:X;base;construct a MultiLinestring |
| 192 | MPolyFromText / MultiPolygonFromText | 从 WKT 构造 Geometry | 语法:MPolyFromText( wktMultiPolygon String , SRID Integer ) : MultiPolygon ; ST_MPolyFromText( wktMultiPolygon String , SRID Integer ) : MultiPolygon ; MultiPolygonFromText( wktMultiPolygon String [ , SRID Integer ...;官方摘要:X;base;construct a MultiPolygon |
| 193 | GeomCollFromText / GeometryCollectionFromText | 从 WKT 构造 Geometry | 语法:GeomCollFromText( wktGeometryCollection String , SRID Integer ) : GeometryCollection ; ST_GeomCollFromText( wktGeometryCollection String , SRID Integer ) : GeometryCollection ; GeometryCollectionFromText( wktG...;官方摘要:X;base;construct a GeometryCollection |
| 194 | BdPolyFromText | 从 WKT 构造 Geometry | 语法:BdPolyFromText( wktMultilinestring String , SRID Integer ) : Polygon ; ST_BdPolyFromText( wktMultilinestring String , SRID Integer ) : Polygon;官方摘要:X;GEOS;Construct a Polygon given an arbitrary collection of closed linestrings as a MultiLineString text representation. ; see also : BuildArea() , Polygonize() |
| 195 | BdMPolyFromText | 从 WKT 构造 Geometry | 语法:BdMPolyFromText( wktMultilinestring String , SRID Integer ) : MultiPolygon ; ST_BdMPolyFromText( wktMultilinestring String , SRID Integer ) : MultiPolygon;官方摘要:X;GEOS;Construct a MultiPolygon given an arbitrary collection of closed linestrings as a MultiLineString text representation. ; see also : BuildArea() , Polygonize() |
9.12 SQL functions for constructing a geometric object given its Well-known Binary Representation
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 196 | GeomFromWKB | 从 WKB 构造 Geometry | 语法:GeomFromWKB( wkbGeometry Binary , SRID Integer ) : Geometry ; ST_GeomFromWKB( wkbGeometry Binary , SRID Integer ) : Geometry;官方摘要:X;base;construct a geometric object given its Well-known binary Representation |
| 197 | ST_WKBToSQL | 从 WKB 构造 Geometry | 语法:ST_WKBToSQL( wkbGeometry Binary ) : Geometry;官方摘要:base;SQL/MM compliant: simply an alias name for ST_GeomFromWKB ; Please note : SRID=0 is always assumed. |
| 198 | PointFromWKB | 从 WKB 构造 Geometry | 语法:PointFromWKB( wkbPoint Binary , SRID Integer ) : Point ; ST_PointFromWKB( wkbPoint Binary , SRID Integer ) : Point;官方摘要:X;base;construct a Point |
| 199 | LineFromWKB / LineStringFromWKB | 从 WKB 构造 Geometry | 语法:LineFromWKB( wkbLineString Binary , SRID Integer ) : Linestring ; ST_LineFromWKB( wkbLineString Binary , SRID Integer ) : Linestring ; LineStringFromText( wkbLineString Binary , SRID Integer ) : Linestring...;官方摘要:X;base;construct a Linestring |
| 200 | PolyFromWKB / PolygonFromWKB | 从 WKB 构造 Geometry | 语法:PolyFromWKB( wkbPolygon Binary , SRID Integer ) : Polygon ; ST_PolyFromWKB( wkbPolygon Binary , SRID Integer ) : Polygon ; PolygonFromWKB( wkbPolygon Binary , SRID Integer ) : Polygon ; ST_PolygonFromWKB( ...;官方摘要:X;base;construct a Polygon |
| 201 | MPointFromWKB / MultiPointFromWKB | 从 WKB 构造 Geometry | 语法:MPointFromWKB( wkbMultiPoint Binary , SRID Integer ) : MultiPoint ; ST_MPointFromWKB( wkbMultiPoint Binary , SRID Integer ) : MultiPoint ; MultiPointFromWKB( wkbMultiPoint Binary , SRID Integer ) : MultiPo...;官方摘要:X;base;construct a MultiPoint |
| 202 | MLineFromWKB / MultiLineStringFromWKB | 从 WKB 构造 Geometry | 语法:MLineFromWKB( wkbMultiLineString Binary , SRID Integer ) : MultiLinestring ; ST_MLineFromWKB( wkbMultiLineString Binary , SRID Integer ) : MultiLinestring ; MultiLineStringFromWKB( wkbMultiLineString Binary [ ...;官方摘要:X;base;construct a MultiLinestring |
| 203 | MPolyFromWKB / MultiPolygonFromWKB | 从 WKB 构造 Geometry | 语法:MPolyFromWKB( wkbMultiPolygon Binary , SRID Integer ) : MultiPolygon ; ST_MPolyFromWKB( wkbMultiPolygon Binary , SRID Integer ) : MultiPolygon ; MultiPolygonFromWKB( wkbMultiPolygon Binary , SRID Integer )...;官方摘要:X;base;construct a MultiPolygon |
| 204 | GeomCollFromWKB / GeometryCollectionFromWKB | 从 WKB 构造 Geometry | 语法:GeomCollFromWKB( wkbGeometryCollection Binary , SRID Integer ) : GeometryCollection ; ST_GeomCollFromWKB( wkbGeometryCollection Binary , SRID Integer ) : GeometryCollection ; GeometryCollectionFromWKB( wkbGeom...;官方摘要:X;base;construct a GeometryCollection |
| 205 | BdPolyFromWKB | 从 WKB 构造 Geometry | 语法:BdPolyFromWKB( wkbMultilinestring Binary , SRID Integer ) : Polygon ; ST_BdPolyFromWKB( wkbMultilinestring Binary , SRID Integer ) : Polygon;官方摘要:X;GEOS;Construct a Polygon given an arbitrary collection of closed linestrings as a MultiLineString binary representation. ; see also : BuildArea() , Polygonize() |
| 206 | BdMPolyFromWKB | 从 WKB 构造 Geometry | 语法:BdMPolyFromWKB( wkbMultilinestring Binary , SRID Integer ) : MultiPolygon ; ST_BdMPolyFromWKB( wkbMultilinestring Binary , SRID Integer ) : MultiPolygon;官方摘要:X;GEOS;Construct a MultiPolygon given an arbitrary collection of closed linestrings as a MultiLineString binary representation. ; see also : BuildArea() , Polygonize() |
9.13 SQL functions for obtaining the Well-known Text / Well-known Binary Representation of a geometric object
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 207 | AsText | 从 WKT 构造 Geometry | 语法:AsText( geom Geometry ) : String ; ST_AsText( geom Geometry ) : String;官方摘要:X;base;returns the Well-known Text representation |
| 208 | AsWKT | 从 WKT 构造 Geometry | 语法:AsWKT( geom Geometry , precision Integer ) : String;官方摘要:base;returns the Well-known Text representation;always return strictly conformant 2D WKT |
| 209 | AsBinary | 从 WKT 构造 Geometry | 语法:AsBinary( geom Geometry ) : Binary ; ST_AsBinary( geom Geometry ) : Binary;官方摘要:X;base;returns the Well-known Binary representation |
9.14 SQL functions supporting exotic geometric formats
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 210 | AsSVG | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsSVG( geom Geometry , relative Integer \[ , precision Integer ] ) : String;官方摘要:base;returns the SVG Scalable Vector Graphics representation |
| 211 | AsKml | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsKml( geom Geometry , precision Integer ) : String ; AsKml( name String , description String , geom Geometry , precision Integer ) : String;官方摘要:PROJ;returns the KML Keyhole Markup Language representation; The first form will simply generate the geometry element: the second form will generate a complete KML entity |
| 212 | GeomFromKml | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromKml( KmlGeometry String ) : Geometry;官方摘要:base;construct a geometric object given its KML Representation |
| 213 | AsGml | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsGml( geom Geometry , precision Integer ) : String ; AsGml( version Integer , geom Geometry , precision Integer ) : String;官方摘要:base;returns the GML Geography Markup Language representation; If version = 3 than GML 3.x is generated, otherwise the output format will be GML 2.x |
| 214 | GeomFromGML | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromGML( gmlGeometry String ) : Geometry;官方摘要:base;construct a geometric object given its GML Representation |
| 215 | AsGeoJSON | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsGeoJSON( geom Geometry , precision Integer \[ , options Integer ] ) : String;官方摘要:base;returns the GeoJSON Geographic JavaScript Object Notation representation; if not explicitly specified precision is 15 decimal digits (default value).;; options can assu... |
| 216 | GeomFromGeoJSON | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromGeoJSON( geoJSONGeometry String ) : Geometry;官方摘要:base;construct a geometric object given its GeoJSON Representation |
| 217 | AsEWKB | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsEWKB( geom Geometry ) : String;官方摘要:base;returns the EWKB Extended Well Known Binary representation (PostGIS compatibility) |
| 218 | GeomFromEWKB | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromEWKB( ewkbGeometry String ) : Geometry;官方摘要:base;construct a geometric object given its EWKB Representation |
| 219 | AsEWKT | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsEWKT( geom Geometry ) : String;官方摘要:base;returns the EWKT Extended Well Known Text representation (PostGIS compatibility) |
| 220 | GeomFromEWKT | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromEWKT( ewktGeometry String ) : Geometry;官方摘要:base;construct a geometric object given its EWKT Representation |
| 221 | AsFGF | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsFGF( geom Geometry , dims Integer ) : Binary;官方摘要:base;returns the FGF FDO Geometry Binary Format representation; dims can assume one of the following values: 0 XY dimension 1 XYZ dimension 2 XYM dimension 3 XYZM dimension |
| 222 | GeomFromFGF | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromFGF( fgfGeometry Binary , SRID Integer ) : Geometry;官方摘要:base;construct a geometric object given its FGF binary Representation |
| 223 | AsTWKB | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:AsTWKB( geom Geometry ) : TWKB-blob ; AsTWKB( geom Geometry , precision_xy Integer ) : TWKB-blob ; AsTWKB( geom Geometry , precision_xy Integer , precision_z Integer ) : TWKB-blob ; AsTWKB( geom Geometry , precision_x...;官方摘要:RTTOPO;returns the TWKB Tiny Well Known Binary representation (PostGIS/Mapnik compatibility) the optional arguments precision_xy , precision_z and precision_m are intended t... |
| 224 | GeomFromTWKB | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:GeomFromTWKB( twkbGeometry BLOB , SRID Integer ) : Geometry;官方摘要:RTTOPO;construct a geometric object given its TWKB Representation |
| 225 | AsEncodedPolyline | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:ST_AsEncodedPolyline( geom Geometry ) : TEXT ; ST_AsEncodedPolyline( geom Geometry , precision Integer ) : TEXT;官方摘要:RTTOPO;returns a GoogleMaps encoded Polyline from a Geometry.; The optional arguments precision is intended to specify how many decimal digits should be preserved ( default valu... |
| 226 | LineFromEncodedPolyline | KML、GML、GeoJSON、SVG 等格式互操作 | 语法:ST_LineFromEncodedPolyline( polyline TEXT ) : Geometry ; ST_LineFromEncodedPolyline( polyline TEXT , precision Integer ) : Geometry;官方摘要:RTTOPO;returns a Geometry from a GoogleMaps encoded Polyline .; The optional arguments precision is intended to specify how many decimal digist should be preserved ( default val... |
9.15 SQL functions on type Geometry
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 227 | Dimension | Geometry 属性、SRID、有效性和结构检查 | 语法:Dimension( geom Geometry ) : Integer ; ST_Dimension( geom Geometry ) : Integer;官方摘要:X;base;returns the dimension of the geometric object, which is less than or equal to the dimension of the coordinate space |
| 228 | CoordDimension | Geometry 属性、SRID、有效性和结构检查 | 语法:CoordDimension( geom Geometry ) : String;官方摘要:base;returns the dimension model used by the geometric object as:; ' XY ', ' XYZ ', ' XYM ' or ' XYZM ' |
| 229 | NDims | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_NDims( geom Geometry ) : Integer;官方摘要:base;returns the dimension number used by the geometric object as:; 2 , 3 or 4 respectively for XY , XYZ and XYZM ( 3 for XYM ) |
| 230 | Is3D | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_Is3D( geom Geometry ) : Integer;官方摘要:base;Checks if geom has the Z dimension.; The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and -1 for UNKNOWN when called with invalid arguments. |
| 231 | IsMeasured | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_IsMeasured( geom Geometry ) : Integer;官方摘要:base;Check if geom has the M dimension.; The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and -1 for UNKNOWN when called with invalid arguments. |
| 232 | GeometryType | Geometry 属性、SRID、有效性和结构检查 | 语法:GeometryType( geom Geometry ) : String ; ST_GeometryType( geom Geometry ) : String;官方摘要:X;base;returns the name of the instantiable subtype of Geometry of which this geometric object is a member, as a string. One between: POINT / POINT Z / POINT M / POINT ZM LINEST... |
| 233 | SRID | Geometry 属性、SRID、有效性和结构检查 | 语法:SRID( geom Geometry ) : Integer ; ST_SRID( geom Geometry ) : Integer;官方摘要:X;base;returns the Spatial Reference System ID for this geometric object |
| 234 | SetSRID | Geometry 属性、SRID、有效性和结构检查 | 语法:SetSRID( geom Geometry , SRID Integer ) : Geometry;官方摘要:base;directly sets the Spatial Reference System ID for this geometric object no reprojection is applied; Will return a new Geometry BLOB object, or NULL on invalid arguments o... |
| 235 | IsEmpty | Geometry 属性、SRID、有效性和结构检查 | 语法:IsEmpty( geom Geometry ) : Integer ; ST_IsEmpty( geom Geometry ) : Integer;官方摘要:X;base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument.; TRUE if this geometric object correspond... |
| 236 | IsSimple | Geometry 属性、SRID、有效性和结构检查 | 语法:IsSimple( geom Geometry ) : Integer ; ST_IsSimple( geom Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument.; TRUE if this geometric object is simple,... |
| 237 | IsValid | Geometry 属性、SRID、有效性和结构检查 | 语法:IsValid( geom Geometry , esri_flag Boolean ) : Integer ; ST_IsValid( geom Geometry , esri_flag Boolean ) : Integer;官方摘要:GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument.; If the ESRI_flag argument is set to 1 (TRU... |
| 238 | IsValidReason | Geometry 属性、SRID、有效性和结构检查 | 语法:IsValidReason( geom Geometry , esri_flag Boolean ) : String ; ST_IsValidReason( geom Geometry , esri_flag Boolean ) : String;官方摘要:GEOS;Will return a TEXT string stating if a Geometry is valid and if not valid, a reason why.; If the ESRI_flag argument is set to 1 (TRUE), then all ESRI-like internal holes (v... |
| 239 | IsValidDetail | Geometry 属性、SRID、有效性和结构检查 | 语法:IsValidDetail( geom Geometry , esri_flag Boolean ) : Geometry ; ST_IsValidDetail( geom Geometry , esri_flag Boolean ) : Geometry;官方摘要:GEOS;Will return a Geometry detail (usually a POINT ) causing invalidity.; If the ESRI_flag argument is set to 1 (TRUE), then all ESRI-like internal holes (violating the standar... |
| 240 | Boundary | Geometry 属性、SRID、有效性和结构检查 | 语法:Boundary( geom Geometry ) : Geometry ; ST_Boundary( geom Geometry ) : Geometry;官方摘要:X;GEOS;returns a geometric object that is the combinatorial boundary of g as defined in the Geometry Model |
| 241 | Envelope | Geometry 属性、SRID、有效性和结构检查 | 语法:Envelope( geom Geometry ) : Geometry ; ST_Envelope( geom Geometry ) : Geometry;官方摘要:X;base;returns the rectangle bounding g as a Polygon. The Polygon is defined by the corner points of the bounding box [(MINX, MINY),(MAXX, MINY), (MAXX, MAXY), (MINX, MAXY), (MI... |
| 242 | Expand | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_Expand( geom Geometry , amount Double precision ) : Geometry;官方摘要:base;returns the rectangle bounding g as a Polygon. The bounding rectangle is expanded in all directions by an amount specified by the second argument. |
| 243 | NPoints | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_NPoints( geom Geometry ) : Integer;官方摘要:base;return the total number of Points (this including any Linestring/Polygon vertex). |
| 244 | NRings | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_NRings( geom Geometry ) : Integer;官方摘要:base;return the total number of Rings (this including both Exterior and Interior Rings). |
| 245 | Reverse | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_Reverse( geom Geometry ) : Geometry;官方摘要:base;returns a new Geometry if a valid Geometry was supplied, or NULL in any other case.; Any Linestring or Ring will be in reverse order (first vertex will be the last one, a... |
| 246 | ForceLHR | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_ForceLHR( geom Geometry ) : Geometry;官方摘要:base;Just an alias-name for ST_ForcePolygonCW() .; Note: this function in Spatialite has a different interpretation then in PostGIS. |
| 247 | ForcePolygonCW | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_ForcePolygonCW( geom Geometry ) : Geometry;官方摘要:base;returns a new Geometry if a valid Geometry was supplied, or NULL in any other case.; All Polygons will be oriented accordingly to Clockwise Rule (all Exterior Ring will b... |
| 248 | ForcePolygonCCW | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_ForcePolygonCCW( geom Geometry ) : Geometry;官方摘要:base;returns a new Geometry if a valid Geometry was supplied, or NULL in any other case.; All Polygons will be oriented accordingly to Counter-Clockwise Rule (all Exterior Rin... |
| 249 | IsPolygonCW | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_IsPolygonCW( geom Geometry ) : Boolean;官方摘要:base;returns TRUE ( 1 ) if all Polygons into the Geometry are oriented accordingly to Clockwise Rule (all Exterior Ring must be clockwise oriented, and all Interior Rings must b... |
| 250 | IsPolygonCCW | Geometry 属性、SRID、有效性和结构检查 | 语法:ST_IsPolygonCCW( geom Geometry ) : Boolean;官方摘要:base;returns TRUE ( 1 ) if all Polygons into the Geometry are oriented accordingly to Counter-Clockwise Rule (all Exterior Ring must be counter-clockwise oriented, and all Inter... |
9.16 SQL functions attempting to repair malformed Geometries
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 251 | SanitizeGeometry | 修复异常或不完整 Geometry | 语法:SanitizeGeometry( geom Geometry ) : geom Geometry;官方摘要:base;returns a (possibly) sanitized Geometry if a valid Geometry was supplied , or NULL in any other case; Please note : current implementations only affects: repeated vertic... |
| 252 | EnsureClosedRings | 修复异常或不完整 Geometry | 语法:EnsureClosedRings( geom Geometry ) : geom Geometry;官方摘要:base;returns a new Geometry derived from the input Geometry; all Rings within the output Geometry are ensured to be correctly closed , i.e. will have exactly coincident start an... |
| 253 | RemoveRepeatedPoints | 修复异常或不完整 Geometry | 语法:RemoveRepeatedPoints( geom Geometry ) : geom Geometry ; RemoveRepeatedPoints( geom Geometry , tolerance Double ) : geom Geometry;官方摘要:base;returns a new Geometry derived from the input Geometry; all repeated vertices found in Linestrings or Rings will be removed and the same applies to repeated points found in... |
9.17 SQL Geometry-compression functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 254 | CompressGeometry | Geometry 压缩和解压 | 语法:CompressGeometry( geom Geometry ) : geom Geometry;官方摘要:base;returns a compressed Geometry if a valid Geometry was supplied , or NULL in any other case; Please note : geometry compression only affects LINESTRINGs and POLYGONs, not... |
| 255 | UncompressGeometry | Geometry 压缩和解压 | 语法:UncompressGeometry( geom Geometry ) : geom Geometry;官方摘要:base;returns an uncompressed Geometry if a valid Geometry was supplied , or NULL in any other case |
9.18 SQL Geometry-type casting functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 256 | CastToPoint | Geometry 类型转换 | 语法:CastToPoint( geom Geometry ) : geom Geometry;官方摘要:base;returns a POINT -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing only a single POINT and no other ele... |
| 257 | CastToLinestring | Geometry 类型转换 | 语法:CastToLinestring( geom Geometry ) : geom Geometry;官方摘要:base;returns a LINESTRING -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing only a single LINESTRING and no... |
| 258 | CastToPolygon | Geometry 类型转换 | 语法:CastToPolygon( geom Geometry ) : geom Geometry;官方摘要:base;returns a POLYGON -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing only a single POLYGON and no other... |
| 259 | CastToMultiPoint | Geometry 类型转换 | 语法:CastToMultiPoint( geom Geometry ) : geom Geometry;官方摘要:base;returns a MULTIPOINT -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing one or more POINT(s) and no oth... |
| 260 | CastToMultiLinestring | Geometry 类型转换 | 语法:CastToMultiLinestring( geom Geometry ) : geom Geometry;官方摘要:base;returns a MULTILINESTRING -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing one or more LINESTRING(s) ... |
| 261 | CastToMultiPolygon | Geometry 类型转换 | 语法:CastToMultiPolygon( geom Geometry ) : geom Geometry;官方摘要:base;returns a MULTIPOLYGON -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any Geometry containing one or more POLYGON(s) and no... |
| 262 | CastToGeometyCollection | Geometry 类型转换 | 语法:CastToGeometryCollection( geom Geometry ) : geom Geometry;官方摘要:base;returns a GEOMETRYCOLLECTION -type Geometry if type-conversion is possible , or NULL in any other case; can be applied to any valid Geometry |
| 263 | CastToMulti | Geometry 类型转换 | 语法:CastToMulti( geom Geometry ) : geom Geometry ; ST_Multi( geom Geometry ) : geom Geometry;官方摘要:base;returns a MULTIPOINT- , MULTILINESTRING- or MULTIPOLYGON -type Geometry if type-conversion is possible , or NULL in any other case; a MULTIPOINT will be returned for a G... |
| 264 | CastToSingle | Geometry 类型转换 | 语法:CastToSingle( geom Geometry ) : geom Geometry;官方摘要:base;returns a POINT- , LINESTRING- or POLYGON -type Geometry if type-conversion is possible , or NULL in any other case; a POINT will be returned for a Geometry containing o... |
9.19 SQL Space-dimensions casting functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 265 | CastToXY | XY、XYZ、XYM、XYZM 维度转换 | 语法:CastToXY( geom Geometry ) : geom Geometry;官方摘要:base;returns a Geometry using the XY space dimension |
| 266 | CastToXYZ | XY、XYZ、XYM、XYZM 维度转换 | 语法:CastToXYZ( geom Geometry ) : geom Geometry ; CastToXYZ( geom Geometry , no_data Double ) : geom Geometry;官方摘要:base;returns a Geometry using the XYZ space dimension.; If the input Geometry already supports Z coordinates they'll be preserved as they are.; If the input Geometry does no... |
| 267 | CastToXYM | XY、XYZ、XYM、XYZM 维度转换 | 语法:CastToXYM( geom Geometry ) : geom Geometry ; CastToXYM( geom Geometry , no_data Double ) : geom Geometry;官方摘要:base;returns a Geometry using the XYM space dimension.; If the input Geometry already supports M coordinates they'll be preserved as they are.; If the input Geometry does no... |
| 268 | CastToXYZM | XY、XYZ、XYM、XYZM 维度转换 | 语法:CastToXYZM( geom Geometry ) : geom Geometry ; CastToXYZM( geom Geometry , z_no_data Double , m_no_data Double ) : geom Geometry;官方摘要:base;returns a Geometry using the XYZM space dimension.; If the input Geometry already supports Z coordinates they'll be preserved as they are.; If the input Geometry does n... |
9.20 SQL functions on type Point
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 269 | X | Point 坐标访问 | 语法:X( pt Point ) : Double precision ; ST_X( pt Point ) : Double precision;官方摘要:X;base;return the x-coordinate of Point p as a double precision number |
| 270 | Y | Point 坐标访问 | 语法:Y( pt Point ) : Double precision ; ST_Y( pt Point ) : Double precision;官方摘要:X;base;return the y-coordinate of Point p as a double precision number |
| 271 | Z | Point 坐标访问 | 语法:Z( pt Point ) : Double precision ; ST_Z( pt Point ) : Double precision;官方摘要:X;base;return the z-coordinate of Point p as a double precision number; or NULL is no z-coordinate is available |
| 272 | M | Point 坐标访问 | 语法:M( pt Point ) : Double precision ; ST_M( pt Point ) : Double precision;官方摘要:X;base;return the m-coordinate of Point p as a double precision number; or NULL is no m-coordinate is available |
9.21 SQL functions on type Curve Linestring or Ring
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 273 | StartPoint | 曲线属性和简化 | 语法:StartPoint( c Curve ) : Point ; ST_StartPoint( c Curve ) : Point;官方摘要:X;base;return a Point containing the first Point of c |
| 274 | EndPoint | 曲线属性和简化 | 语法:EndPoint( c Curve ) : Point ; ST_EndPoint( c Curve ) : Point;官方摘要:X;base;return a Point containing the last Point of c |
| 275 | Length | 曲线属性和简化 | 语法:GLength( c Curve ) : Double precision OpenGis name for this function is Length() , but it conflicts with an SQLite reserved keyword;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 276 | GLength( c Curve , use_ellipsoid Boolean ) : Double precision ; ST_Length( c Curve , use_ellipsoid Boolean ) : Double precision | 曲线属性和简化 | 语法:X;官方摘要:GEOS;return the length of c (measured in meters).; If the use_ellipsoid argument is set to TRUE the precise (but slower) length will be computed on the Ellipsoid, otherwise will... |
| 277 | Perimeter | 曲线属性和简化 | 语法:Perimeter( s Surface ) : Double precision ST_Perimeter( s Surface ) : Double precision;官方摘要:X;GEOS;return the perimeter of s; Starting since v.4.0.0 this function will simply consider Polygons and MultiPolygons, ignoring any Linestring or MultiLinestring |
| 278 | Perimeter( s Surface , use_ellipsoid Boolean ) : Double precision ; ST_Perimeter( s Surface , use_ellipsoid Boolean ) : Double precision | 曲线属性和简化 | 语法:X;官方摘要:GEOS;return the perimeter of s (measured in meters).; If the use_ellipsoid argument is set to TRUE the precise (but slower) perimeter will be computed on the Ellipsoid, otherwis... |
| 279 | Geodesic Length | 曲线属性和简化 | 语法:GeodesicLength( c Curve ) : Double precision;官方摘要:base;If and only if the SRID associated with c is a geographic one i.e. one using longitude and latitude angles , then returns the length of c measured on the Ellipsoid [... |
| 280 | Great Circle Length | 曲线属性和简化 | 语法:GreatCircleLength( c Curve ) : Double precision;官方摘要:base;If and only if the SRID associated with c is a geographic one i.e. one using longitude and latitude angles , then returns the length of c measured on the Great Circl... |
| 281 | IsClosed | 曲线属性和简化 | 语法:IsClosed( c Curve ) : Integer ; ST_IsClosed( c Curve ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument;; return TRUE if c is closed, i.e., if Sta... |
| 282 | IsRing | 曲线属性和简化 | 语法:IsRing( c Curve ) : Integer ; ST_IsRing( c Curve ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument.; return TRUE if c is a ring, i.e., if c i... |
| 283 | PointOnSurface | 曲线属性和简化 | 语法:PointOnSurface( s Surface/Curve ) : Point ; ST_PointOnSurface( s Surface/Curve ) : Point;官方摘要:X;GEOS;return a Point guaranteed to lie on the Surface (or Curve) |
| 284 | Simplify | 曲线属性和简化 | 语法:Simplify( c Curve , tolerance Double precision ) : Curve ; ST_Simplify( c Curve , tolerance Double precision ) : Curve ; ST_Generalize( c Curve , tolerance Double precision ) : Curve;官方摘要:GEOS;return a geometric object representing a simplified version of c applying the Douglas-Peuker algorithm with given tolerance |
| 285 | SimplifyPreserveTopology | 曲线属性和简化 | 语法:SimplifyPreserveTopology( c Curve , tolerance Double precision ) : Curve ; ST_SimplifyPreserveTopology( c Curve , tolerance Double precision ) : Curve;官方摘要:GEOS;return a geometric object representing a simplified version of c applying the Douglas-Peuker algorithm with given tolerance and respecting topology |
9.22 SQL functions on type LineString
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 286 | NumPoints | LineString 节点、点编辑和长度统计 | 语法:NumPoints( line LineString ) : Integer ; ST_NumPoints( line LineString ) : Integer;官方摘要:X;base;return the number of Points in the LineString |
| 287 | PointN | LineString 节点、点编辑和长度统计 | 语法:PointN( line LineString , n Integer ) : Point ; ST_PointN( line LineString , n Integer ) : Point;官方摘要:X;base;return a Point containing Point n of line (first Point corresponds to n=1) |
| 288 | AddPoint | LineString 节点、点编辑和长度统计 | 语法:AddPoint( line LineString , point Point , position Integer ) : Linestring ; ST_AddPoint( line LineString , point Point , position Integer ) : Linestring;官方摘要:base;returns a new Linestring by adding a new Point into the input Linestring immediately before position (zero-based index).; A negative position (default) means appending the ... |
| 289 | SetPoint | LineString 节点、点编辑和长度统计 | 语法:SetPoint( line LineString , position Integer , point Point ) : Linestring ; ST_SetPoint( line LineString , position Integer , point Point ) : Linestring;官方摘要:base;returns a new Linestring by replacing the Point at position (zero-based index).; NULL will be returned if any error is encountered. |
| 290 | SetStartPoint | LineString 节点、点编辑和长度统计 | 语法:SetStartPoint( line LineString , point Point ) : Linestring ; ST_SetStartPoint( line LineString , point Point ) : Linestring;官方摘要:base;returns a new Linestring by replacing its StartPoint.; NULL will be returned if any error is encountered. |
| 291 | SetEndPoint | LineString 节点、点编辑和长度统计 | 语法:SetEndPoint( line LineString , point Point ) : Linestring ; ST_SetEndPoint( line LineString , point Point ) : Linestring;官方摘要:base;returns a new Linestring by replacing its EndPoint.; NULL will be returned if any error is encountered. |
| 292 | RemovePoint | LineString 节点、点编辑和长度统计 | 语法:RemovePoint( line LineString , position Integer ) : Linestring ; ST_RemovePoint( line LineString , position Integer ) : Linestring;官方摘要:base;returns a new Linestring by removing the Point at position (zero-based index).; NULL will be returned if any error is encountered. |
| 293 | GetPointIndex | LineString 节点、点编辑和长度统计 | 语法:GetPointIndex( line LineString , point Point ) : Integer ; GetPointIndex( line LineString , point Point , check_multiple Boolean ) : Integer ; ST_GetPointIndex line LineString , point Point ) : Integer ; ST_GetPointIn...;官方摘要:base;returns the position (zero-based index) of the Linestring's vertex nearest to the given Point.; NULL will be returned if any error is encountered. if the optional argument ... |
| 294 | SetMultiplePoints | LineString 节点、点编辑和长度统计 | 语法:SetMultiplePoints( line LineString , pk_value Integer , table_name Text , point_name Text , pk_name Text , position_name Text ) : Linestring ; ST_SetMultiplePoints( line LineString , pk_value Integer , table_name Text...;官方摘要:base;returns a new Linestring by replacing one or more Vertices accordingly to the content of an auxiliary helper table .;; Note : this one is a very special SQL Function not in... |
| 295 | INTEGER NOT NULL | LineString 节点、点编辑和长度统计 | 语法:-- column containing Feature IDs;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 296 | INTEGER NOT NULL | LineString 节点、点编辑和长度统计 | 语法:-- column containing vertex positions (zero-based index);官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 297 | SELECT AddGeometryColumn( / POINT / ); | LineString 节点、点编辑和长度统计 | 语法:-- Geometry column of the POINT type containing the new vertices to be replaced;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 298 | LinestringMinSegmentLength | LineString 节点、点编辑和长度统计 | 语法:LinestringMinSegmentLength( line LineString ) : Double precision ; LinestringMinSegmentLength( line LineString , boolean ignore_repeated_vertices ) : Double precision ; ST_LinestringMinSegmentLength( line LineString )...;官方摘要:base;any eventual repeated vertex will be ignored or considered accordingly to the seeting of the optional argument ignore_repeated_vertices ; The default setting is TRUE (that ... |
| 299 | LinestringMaxSegmentLength | LineString 节点、点编辑和长度统计 | 语法:LinestringMaxSegmentLength( line LineString ) : Double precision ; ST_LinestringMaxSegmentLength( line LineString ) : Double precision;官方摘要:base;returns the length of the longest segment in the Linestring.; NULL will be returned if any error is encountered.; Note : this function only accepts simple Linestrings; Geom... |
| 300 | LinestringAvgSegmentLength | LineString 节点、点编辑和长度统计 | 语法:LinestringAvgSegmentLength( line LineString ) : Double precision ; ST_LinestringAvgSegmentLength( line LineString ) : Double precision;官方摘要:base;returns the average length of segments in the Linestring.; NULL will be returned if any error is encountered.; Note : this function only accepts simple Linestrings; Geometr... |
| 301 | CurvosityIndex | LineString 节点、点编辑和长度统计 | 语法:CurvosityIndex( line LineString ) : Double precision ; CurvosityIndex( line LineString , extra-points Integer ) : Double precision ; ST_CurvosityIndex( line LineString ) : Double precision ; ST_CurvosityIndex( line Li...;官方摘要:base;returns the Curvosity Index of a generic simple Linestring: the Index will range between 1.0 ( in the case of a perfectly straight line ) and 0.0 ( in the case of a closed ... |
| 302 | UphillHeight | LineString 节点、点编辑和长度统计 | 语法:UphillHeight( line LineString ) : Double precision ; ST_UphillHeight( line LineString ) : Double precision;官方摘要:base;returns the total Uphill Height of a generic simple Linestring: 0.0 will be always returned for any 2D Linestring not containing Z coordinates. NULL will be returned if any... |
| 303 | DownhillHeight | LineString 节点、点编辑和长度统计 | 语法:DownhillHeight( line LineString ) : Double precision ; ST_DownhillHeight( line LineString ) : Double precision;官方摘要:base;returns the total Downhill Height of a generic simple Linestring: 0.0 will be always returned for any 2D Linestring not containing Z coordinates. NULL will be returned if a... |
| 304 | UpDownHeight | LineString 节点、点编辑和长度统计 | 语法:UpDownHeight( line LineString ) : Double precision ; ST_UpDownHeight( line LineString ) : Double precision;官方摘要:base;returns the sum of total UpHill and DownHill Heights of a generic simple Linestring: this is just a convenience method ; calling ST_UpDownHeight(line) is exactly the same t... |
9.23 SQL functions on type Surface Polygon or Ring
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 305 | Centroid | Surface 质心和面积 | 语法:Centroid( s Surface ) : Point ; ST_Centroid( s Surface ) : Point;官方摘要:X;GEOS;return the centroid of s, which may lie outside s |
| 306 | Area | Surface 质心和面积 | 语法:Area( s Surface ) : Double precision ; ST_Area( s Surface ) : Double precision;官方摘要:X;GEOS;return the area of s |
| 307 | Area( s Surface , use_ellipsoid Boolean ) : Double precision ; ST_Area( s Surface , use_ellipsoid Boolean ) : Double precision | Surface 质心和面积 | 语法:X;官方摘要:RTTOPO;return the area of s (measured in meters).; If the use_ellipsoid argument is set to TRUE the precise (but slower) area will be computed on the Ellipsoid, otherwise will b... |
| 308 | Circularity | Surface 质心和面积 | 语法:Circularity( s Surface ) : Double precision;官方摘要:X;GEOS;computes the Circularity Index from the given Geometry by applying the following formula: index = ( 4 PI Sum(area) ) / ( Sum(perimeter) * Sum(perimeter) ) it only app... |
| 309 | Circularity( s Surface , use_ellipsoid Boolean ) : Double precision | Surface 质心和面积 | 语法:X;官方摘要:RTTOPO;same as the above Function, but in this case areas and perimeters will be measured in meters.; If the use_ellipsoid argument is set to TRUE the precise (but slower) value... |
9.24 SQL functions on type Polygon
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 310 | ExteriorRing | Polygon 外环和内环访问 | 语法:ExteriorRing( polyg Polygon ) : LineString ; ST_ExteriorRing( polyg Polygon ) : LineString;官方摘要:X;base;return the exteriorRing of p |
| 311 | NumInteriorRing / NumInteriorRings | Polygon 外环和内环访问 | 语法:NumInteriorRing( polyg Polygon ) : Integer ; NumInteriorRings( polyg Polygon ) : Integer ; ST_NumInteriorRing( polyg Polygon ) : Integer;官方摘要:X;base;return the number of interiorRings |
| 312 | InteriorRingN | Polygon 外环和内环访问 | 语法:InteriorRingN( polyg Polygon , n Integer ) : LineString ; ST_InteriorRingN( polyg Polygon , n Integer ) : LineString;官方摘要:X;base;return the nth (1-based) interiorRing. The order of Rings is not geometrically significant. |
9.25 SQL functions on type GeomCollection
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 313 | NumGeometries | GeometryCollection 成员访问 | 语法:NumGeometries( geom GeomCollection ) : Integer ; ST_NumGeometries( geom GeomCollection ) : Integer;官方摘要:X;base;return the number of individual Geometries |
| 314 | GeometryN | GeometryCollection 成员访问 | 语法:GeometryN( geom GeomCollection , n Integer ) : Geometry ; ST_GeometryN( geom GeomCollection , n Integer ) : Geometry;官方摘要:X;base;return the nth (1-based) geometric object in the collection. The order of the elements in the collection is not geometrically significant. |
9.26 SQL functions that test approximate spatial relationships via MBRs
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 315 | MbrEqual | 基于真实 Geometry 的精确空间关系 | 语法:MbrEqual( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments.; TRUE if g1 and g2 have equal MBRs |
| 316 | MbrDisjoint | 基于真实 Geometry 的精确空间关系 | 语法:MbrDisjoint( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments.; TRUE if the intersection of g1 a... |
| 317 | MbrTouches | 基于真实 Geometry 的精确空间关系 | 语法:MbrTouches( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments.; TRUE if the only Points in commo... |
| 318 | MbrWithin | 基于真实 Geometry 的精确空间关系 | 语法:MbrWithin( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments.; TRUE if g1 MBR is completely con... |
| 319 | MbrOverlaps | 基于真实 Geometry 的精确空间关系 | 语法:MbrOverlaps( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments.; TRUE if the intersection of g1 a... |
| 320 | MbrIntersects | 基于真实 Geometry 的精确空间关系 | 语法:MbrIntersects( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL or invalid arguments;; convenience predicate: TRUE if t... |
| 321 | EnvelopesIntersects | 基于真实 Geometry 的精确空间关系 | 语法:ST_EnvIntersects( geom1 Geometry , geom2 Geometry ) : Integer ; ST_EnvelopesIntersects( geom1 Geometry , geom2 Geometry ) : Integer ; ST_EnvIntersects( geom1 Geometry , x1 Double precision , y1 Double precision , x2 D...;官方摘要:base;The first form simply is an alias name for MbrIntersects ; the other form allows to define the second MBR by two extreme points x1, y1 and x2, y2 .; The return type ... |
| 322 | MbrContains | 基于真实 Geometry 的精确空间关系 | 语法:MbrContains( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:base;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments;; convenience predicate: TRUE if g2 MBR is co... |
9.27 SQL functions that test spatial relationships
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 323 | Equals | 基于真实 Geometry 的精确空间关系 | 语法:Equals( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Equals( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if g1 and g2 are equal |
| 324 | Disjoint | 基于真实 Geometry 的精确空间关系 | 语法:Disjoint( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Disjoint( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if the intersection of g1 and g2 is ... |
| 325 | Touches | 基于真实 Geometry 的精确空间关系 | 语法:Touches( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Touches( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if the only Points in common between... |
| 326 | Within | 基于真实 Geometry 的精确空间关系 | 语法:Within( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Within( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if g1 is completely contained in g2 |
| 327 | Overlaps | 基于真实 Geometry 的精确空间关系 | 语法:Overlaps( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Overlaps( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if the intersection of g1 and g2 res... |
| 328 | Crosses | 基于真实 Geometry 的精确空间关系 | 语法:Crosses( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Crosses( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments.; TRUE if the intersection of g1 and g2 res... |
| 329 | Intersects | 基于真实 Geometry 的精确空间关系 | 语法:Intersects( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Intersects( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments;; convenience predicate: TRUE if the inters... |
| 330 | Contains | 基于真实 Geometry 的精确空间关系 | 语法:Contains( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Contains( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:X;GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments;; convenience predicate: TRUE if g2 is comp... |
| 331 | Covers | 基于真实 Geometry 的精确空间关系 | 语法:Covers( geom1 Geometry , geom2 Geometry ) : Integer ; ST_Covers( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments;; convenience predicate: TRUE if g1 completel... |
| 332 | CoveredBy | 基于真实 Geometry 的精确空间关系 | 语法:CoveredBy( geom1 Geometry , geom2 Geometry ) : Integer ; ST_CoveredBy( geom1 Geometry , geom2 Geometry ) : Integer;官方摘要:GEOS;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with NULL arguments;; convenience predicate: TRUE if g1 is comple... |
9.28 non-canonical signature (PostGIS-like)
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 333 | RelateMatch | 空间 SQL 支撑函数 | 语法:ST_RelatedMatch( matrix Text , pattern Text ) : Integer;官方摘要:GEOS;Evaluates if an intersection matrix DE-9IM satisfies an intersection pattern.; The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKN... |
9.29 SQL functions for distance relationships
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 334 | Distance | 距离和距离阈值关系 | 语法:Distance( geom1 Geometry , geom2 Geometry ) : Double precision ; ST_Distance( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:X;GEOS;return the distance between geom1 and geom2 (always measured in CRS units). |
| 335 | Distance( geom1 Geometry , geom2 Geometry , use_ellipsoid Boolean ) : Double precision ; ST_Distance( geom1 Geometry , geom2 Geometry , use_ellipsoid Boolean ) : Double precision | 距离和距离阈值关系 | 语法:X;官方摘要:GEOS;return the distance between geom1 and geom2 (measured in meters).; If the use_ellipsoid argument is set to TRUE the precise (but slower) distance will be computed on the El... |
| 336 | DistanceWithin | 距离和距离阈值关系 | 语法:DistanceWithin( geom1 Geometry , geom2 Geometry , range Double precision ] ) : Integer ; ST_DistanceWithin( geom1 Geometry , geom2 Geometry , range Double precision ) : Integer;官方摘要:GEOS;return TRUE (1) if the distance between geom1 and geom2 is within the given range.; Distances are always expressed in the length unit corresponding to the geoms own SRID; N... |
| 337 | PtDistWithin | 距离和距离阈值关系 | 语法:PtDistWithin( geom1 Geometry , geom2 Geometry , range Double precision , use_spheroid Integer ) : Integer;官方摘要:PROJ;return TRUE (1) if the distance between geom1 and geom2 is within the given range.; Usually distances are expressed in the length unit corresponding to the geoms own SRID: ... |
9.30 SQL functions supporting Linear Referencing
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 338 | AddMeasure | 线性参考和 M 值定位 | 语法:ST_AddMeasure( geom Geometry , m_start Double precision , m_end Double precision ) : Geometry;官方摘要:base;Return a derived Geometry with M-values linearly interpolated between the start and end points.; NULL will be returned if any error is encountered.; Please note : NULL will... |
| 339 | InterpolatePoint | 线性参考和 M 值定位 | 语法:ST_InterpolatePoint( line Geometry , point Geometry ) : Double precision;官方摘要:GEOS;Interpolates the M-value of a linear Geometry at the point closest to the given point.; NULL will be returned if any error is encountered.; Please note : NULL will be retur... |
| 340 | LocateAlongMeasure | 线性参考和 M 值定位 | 语法:ST_Locate_Along_Measure( geom Geometry , m_value Double precision ) : Geometry ; ST_LocateAlong( geom Geometry , m_value Double precision ) : Geometry;官方摘要:base;Return a derived geometry collection value with elements that match the specified measure.; NULL will be returned if any error is encountered (or when no element correspond... |
| 341 | LocateBetweenMeasures | 线性参考和 M 值定位 | 语法:ST_Locate_Between_Measures( geom Geometry , m_start Double precision , m_end Double precision ) : Geometry ; ST_LocateBetween( geom Geometry , m_start Double precision , m_end Double precision ) : Geometry;官方摘要:base;Return a derived geometry collection value with elements that match the specified range of measures.; NULL will be returned if any error is encountered (or when no element ... |
| 342 | IsValidTrajectory | 线性参考和 M 值定位 | 语法:ST_IsValidTrajectory( geom Geometry ) : Integer;官方摘要:base;Checks if a Geometry corresponds to a valid Trajectory.; a Trajectory is assumed to be a LINESTRING supporting M-values growing from each vertex to the next.; Will return 1... |
| 343 | TrajectoryInterpolatePoint | 线性参考和 M 值定位 | 语法:ST_TrajectoryInterpolatePoint( geom Geometry , m_value Double ) : Geometry;官方摘要:base;Return a POINT Geometry being interpolated along the Geometry (that is expected to be a valid Trajectory) accordingly to the given M-value.; The interpolated Point will hav... |
9.31 SQL functions that implement spatial operators
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 344 | Intersection | 几何集合运算和派生 Geometry | 语法:Intersection( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_Intersection( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:X;GEOS;return a geometric object that is the intersection of geometric objects geom1 and geom2 |
| 345 | Difference | 几何集合运算和派生 Geometry | 语法:Difference( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_Difference( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:X;GEOS;return a geometric object that is the closure of the set difference of geom1 and geom2 |
| 346 | GUnion | 几何集合运算和派生 Geometry | 语法:GUnion( geom1 Geometry , geom2 Geometry ) : Geometry OpenGis name for this function is Union() , but it conflicts with an SQLite reserved keyword;官方摘要:官方页面未提供摘要,请以 Syntax 和原文说明为准。 |
| 347 | GUnion | 几何集合运算和派生 Geometry | 语法:GUnion( geom Geometry ) : Geometry ; ST_Union( geom Geometry ) : Geometry;官方摘要:X;GEOS;return a geometric object that is the set union of input values aggregate function |
| 348 | SymDifference | 几何集合运算和派生 Geometry | 语法:SymDifference( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_SymDifference( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:X;GEOS;return a geometric object that is the closure of the set symmetric difference of geom1 and geom2 (logical XOR of space) |
| 349 | Buffer | 几何集合运算和派生 Geometry | 语法:Buffer( geom Geometry , dist Double precision , quadrantsegments Integer ) : Geometry ; ST_Buffer( geom Geometry , dist Double precision , quadrantsegments Integer ) : Geometry;官方摘要:X;GEOS;return a geometric object defined by buffering a distance around the geom, where dist is in the distance units for the Spatial Reference of geom.; the optional quadrantse... |
| 350 | ConvexHull | 几何集合运算和派生 Geometry | 语法:ConvexHull( geom Geometry ) : Geometry ; ST_ConvexHull( geom Geometry ) : Geometry;官方摘要:X;GEOS;return a geometric object that is the convex hull of geom |
9.32 SQL functions that implement spatial operators;GEOS specific features
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 351 | OffestCurve | 几何集合运算和派生 Geometry | 语法:OffsetCurve( geom Curve , radius Double precision ) : Curve ; ST_OffsetCurve( geom Curve , radius Double precision ) : Curve;官方摘要:GEOS;return a geometric object representing the corresponding left-sided ( positive radius ) or right-sided ( negative radius ) offset curve; NULL is returned whenever is not po... |
| 352 | SingleSidedBuffer | 几何集合运算和派生 Geometry | 语法:SingleSidedBuffer( geom Curve , radius Double precision , left_or_right Integer ) : Geometry ; ST_SingleSidedBuffer( geom Curve , radius Double precision , left_or_right Integer ) : GeometryCurve;官方摘要:GEOS;return a geometric object representing the corresponding left- (or right-sided ) single-sided buffer; NULL is returned whenever is not possible deriving a single-sided buff... |
| 353 | SharedPaths | 几何集合运算和派生 Geometry | 语法:SharedPaths( geom1 Geometry , geom2 Geomety ) : Geometry ; ST_SharedPaths( geom1 Geometry , geom2 Geomety ) : Geometry;官方摘要:GEOS;return a geometric object (of the MULTILINESTRING type) representing any common lines shared by both geometries; NULL is returned is no common line exists |
| 354 | Line_Interpolate_Point | 几何集合运算和派生 Geometry | 语法:Line_Interpolate_Point( line Curve , fraction Double precision ) : Point ; ST_Line_Interpolate_Point( line Curve , fraction Double precision ) : Point;官方摘要:GEOS;return a point interpolated along a line.; Second argument (between 0.0 and 1.0 ) representing fraction of total length of linestring the point has to be located.; NULL is ... |
| 355 | Line_Interpolate_Equidistant_Points | 几何集合运算和派生 Geometry | 语法:Line_Interpolate_Equidistant_Points( line Curve , distance Double precision ) : MultiPoint ; ST_Line_Interpolate_Equidistant_Points( line Curve , distance Double precision ) : MultiPoint;官方摘要:GEOS;return a set of equidistant points interpolated along a line; the returned geometry always corresponds to a MULTIPOINT supporting the M coordinate (representing the progres... |
| 356 | Line_Locate_Point | 几何集合运算和派生 Geometry | 语法:Line_Locate_Point( line Curve , point Point ) : Double precision ; ST_Line_Locate_Point( line Curve , point Point ) : Double precision;官方摘要:GEOS;return a number (between 0.0 and 1.0 ) representing the location of the closest point on LineString to the given Point, as a fraction of total 2d line length.; NULL is retu... |
| 357 | Line_Substring | 几何集合运算和派生 Geometry | 语法:Line_Substring( line Curve , start_fraction Double precision , end_fraction Double precision ) : Curve ; ST_Line_Substring( line Curve , start_fraction Double precision , end_fraction Double precision ) : Curve;官方摘要:GEOS;Return a Linestring being a substring of the input one starting and ending at the given fractions of total 2d length.; Second and third arguments are expected to be in the ... |
| 358 | ClosestPoint | 几何集合运算和派生 Geometry | 语法:ClosestPoint( geom1 Geometry , geom2 Geometry ) : Point ; ST_ClosestPoint( geom1 Geometry , geom2 Geometry ) : Point;官方摘要:GEOS;Returns the Point on geom1 that is closest to geom2.; NULL is returned for invalid arguments (or if distance is ZERO) |
| 359 | ShortestLine | 几何集合运算和派生 Geometry | 语法:ShortestLine( geom1 Geometry , geom2 Geometry ) : Curve ; ST_ShortestLine( geom1 Geometry , geom2 Geometry ) : Curve;官方摘要:GEOS;Returns the shortest line between two geometries.; NULL is returned for invalid arguments (or if distance is ZERO) |
| 360 | Snap | 几何集合运算和派生 Geometry | 语法:Snap( geom1 Geometry , geom2 Geometry , tolerance Double precision ) : Geometry ; ST_Snap( geom1 Geometry , geom2 Geometry , tolerance Double precision ) : Geometry;官方摘要:GEOS;Returns a new Geometry representing a modified geom1 , so to "snap" vertices and segments to geom2 vertices; a snap distance tolerance is used to control where snapping is ... |
| 361 | Collect | 几何集合运算和派生 Geometry | 语法:Collect( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_Collect( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:GEOS;a generic Geometry (possibly a GEOMETRYCOLLECTION) will be returned merging geom1 and geom2 ; NULL will be returned if any error is encountered |
| 362 | Collect | 几何集合运算和派生 Geometry | 语法:Collect( geom Geometry ) : Geometry ; ST_Collect( geom Geometry ) : Geometry;官方摘要:GEOS;a generic Geometry (possibly a GEOMETRYCOLLECTION) will be returned merging input Geometries all together; aggregate function ; NULL will be returned if any error is encoun... |
| 363 | LineMerge | 几何集合运算和派生 Geometry | 语法:LineMerge( geom Geometry ) : Geometry ; ST_LineMerge( geom Geometry ) : Geometry;官方摘要:GEOS;a Geometry (actually corresponding to a LINESTRING or MULTILINESTRING ) will be returned.; The input Geometry is expected to represent a LINESTRING or a MULTILINESTRING .; ... |
| 364 | BuildArea | 几何集合运算和派生 Geometry | 语法:BuildArea( geom Geometry ) : Geometry ; ST_BuildArea( geom Geometry ) : Geometry;官方摘要:GEOS;a Geometry (actually corresponding to a POLYGON or MULTIPOLYGON ) will be returned.; The input Geometry is expected to represent a LINESTRING or a MULTILINESTRING .; The in... |
| 365 | Polygonize | 几何集合运算和派生 Geometry | 语法:Polygonize( geom Geometry ) : Geometry ; ST_Polygonize( geom Geometry ) : Geometry;官方摘要:GEOS;Exactly the same as ST_BuildArea , but implemented as an aggregate function .; NULL will be returned if any error is encountered |
| 366 | MakePolygon | 几何集合运算和派生 Geometry | 语法:MakePolygon( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_MakePolygon( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:base;Kind of lightweight/simplified ST_BuildArea : the first input Geometry is always expected to represent a closed LINESTRING assumed to identify the output polygon's Exterior... |
| 367 | UnaryUnion | 几何集合运算和派生 Geometry | 语法:UnaryUnion( geom Geometry ) : Geometry ; ST_UnaryUnion( geom Geometry ) : Geometry;官方摘要:GEOS;Exactely the same as ST_Union , but applied to a single Geometry.; ( set union of elementary Geometries within a MULTI- or GEOMETRYCOLLECTION complex Geometry ); NULL will ... |
| 368 | DrapeLine | 几何集合运算和派生 Geometry | 语法:ST_DrapeLine( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_DrapeLine( geom1 Geometry , geom2 Geometry , tolerance Double ) : Geometry;官方摘要:GEOS;Will return a 3D Linestring by draping geom1 over geom2 : geom1 is expected to be a 2D Linestring ( XY or XYM dimensions). geom2 is expected to be a 3D Linestring ( XYZ or ... |
| 369 | DrapeLineExceptions | 几何集合运算和派生 Geometry | 语法:ST_DrapeLineExceptions( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_DrapeLineExceptions( geom1 Geometry , geom2 Geometry , tolerance Double ) : Geometry ; ST_DrapeLineExceptions( geom1 Geometry , geom2 Geometry ...;官方摘要:GEOS;Will return a 3D MultiPoint containing all undraped Vertices encountered when draping geom1 over geom2 : geom1 , geom2 and tolerance exactly have the same interpretation as... |
| 370 | DissolveSegments | 几何集合运算和派生 Geometry | 语法:DissolveSegments( geom Geometry ) : Geometry ; ST_DissolveSegments( geom Geometry ) : Geometry;官方摘要:base;a Geometry (actually corresponding to a LINESTRING , MULTILINESTRING or GEOMETRYCOLLECTION ) will be returned.; The input Geometry is arbitrary: any POINT will remain unaff... |
| 371 | DissolvePoints | 几何集合运算和派生 Geometry | 语法:DissolvePoints( geom Geometry ) : Geometry ; ST_DissolvePoints( geom Geometry ) : Geometry;官方摘要:base;a Geometry (actually corresponding to a POINT or MULTIPOINT ) will be returned.; The input Geometry is arbitrary: any POINT will remain unaffected, but any LINESTRING or RI... |
| 372 | LinesFromRings | 几何集合运算和派生 Geometry | 语法:LinesFromRings( geom Geometry ) : Geometry ; ST_LinesFromRings( geom Geometry ) : Geometry;官方摘要:base;a Geometry (actually corresponding to a LINESTRING or MULTILINESTRING ) will be returned.; The input Geometry is expected to be a POLYGON or MULTIPOLYGON ; any RING will th... |
| 373 | LinesCutAtNodes | 几何集合运算和派生 Geometry | 语法:LinesCutAtNodes( geom1 Geometry , geom2 Geometry ) : Geometry ; ST_LinesCutAtNodes( geom1 Geometry , geom2 Geometry ) : Geometry;官方摘要:base;a Geometry (actually corresponding to a LINESTRING or MULTILINESTRING ) will be returned.; The first input Geometry is expected to be a LINESTRING or MULTILINESTRING ( Line... |
| 374 | RingsCutAtNodes | 几何集合运算和派生 Geometry | 语法:RingsCutAtNodes( geom Geometry ) : Geometry ; ST_RingsCutAtNodes( geom Geometry ) : Geometry;官方摘要:base;a Geometry (actually corresponding to a LINESTRING or MULTILINESTRING ) will be returned.; The input Geometry is expected to be a POLYGON or MULTIPOLYGON ( Rings ); any sel... |
| 375 | CollectionExtract | 几何集合运算和派生 Geometry | 语法:CollectionExtract( geom Geometry , type Integer ) : Geometry ; ST_CollectionExtract( geom Geometry , type Integer ) : Geometry;官方摘要:base;Given any arbitrary GEOMETRY will return a derived geometry consisting only of the specified type. Sub-geometries that are not the specified type are ignored.; 1 = POINT-ty... |
| 376 | ExtractMultiPoint | 几何集合运算和派生 Geometry | 语法:ExtractMultiPoint( geom Geometry ) : Geometry;官方摘要:base;Given any arbitrary GEOMETRY will return a derived MULTIPOINT geometry. Sub-geometries not being of the POINT type will be ignored.; NULL will be returned if any error is e... |
| 377 | ExtractMultiLinestring | 几何集合运算和派生 Geometry | 语法:ExtractMultiLinestring( geom Geometry ) : Geometry;官方摘要:base;Given any arbitrary GEOMETRY will return a derived MULTILINESTRING geometry. Sub-geometries not being of the LINESTRING type will be ignored.; NULL will be returned if any ... |
| 378 | ExtractMultiPolygon | 几何集合运算和派生 Geometry | 语法:ExtractMultiPolygon( geom Geometry ) : Geometry;官方摘要:base;Given any arbitrary GEOMETRY will return a derived MULTIPOLYGON geometry. Sub-geometries not being of the POLYGON type will be ignored.; NULL will be returned if any error ... |
9.33 SQL functions that implement spatial operators;GEOS advanced features
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 379 | DelaunayTriangulation | 几何集合运算和派生 Geometry | 语法:DelaunayTriangulation( geom Geometry , edges_only Boolean \[ , tolerance Double precision ] ) : Geometry ; ST_DelaunayTriangulation( geom Geometry , edges_only Boolean \[ , tolerance Double precision ] ) : Geometry;官方摘要:GEOS-advanced;return a geometric object representing the Delaunay Triangulation corresponding to the input Geometry; The input Geometry could have any arbitrary type; eventually... |
| 380 | ConstrainedDelaunayTriangulation | 几何集合运算和派生 Geometry | 语法:ConstrainedDelaunayTriangulation( geom Geometry ) : Geometry ; ST_ConstrainedDelaunayTriangulation( geom Geometry ) : Geometry;官方摘要:GEOS-3100;return a constrained Delaunay triangulation of the vertices of the given polygon(s).; NULL is returned on failure. |
| 381 | VoronojDiagram | 几何集合运算和派生 Geometry | 语法:VoronojDiagram( geom Geometry , edges_only Boolean \[ , frame_extra_size Double precision \[ , tolerance Double precision ] ] ) : Geometry ; ST_VoronojDiagram( geom Geometry [ , edges_only Boolean [ , frame_extra_si...;官方摘要:GEOS-advanced;return a geometric object representing the Voronoj Diagram corresponding to the input Geometry; The input Geometry could have any arbitrary type; eventually all Li... |
| 382 | ConcaveHull | 几何集合运算和派生 Geometry | 语法:ConcaveHull( geom Geometry , factor Double precision \[ , allow_holes Boolean \[ , tolerance Double precision ] ] ) : Geometry ; ST_ConcaveHull( geom Geometry [ , factor Double precision [ , allow_holes Boolean [ , ...;官方摘要:GEOS-advanced;return a geometric object representing the ConcaveHull corresponding to the input Geometry; The input Geometry could have any arbitrary type; eventually all Linest... |
| 383 | HausdorffDistance | 几何集合运算和派生 Geometry | 语法:HausdorffDistance( geom1 Geometry , geom2 Geometry ) : Double precision ; HausdorffDistance( geom1 Geometry , geom2 Geometry , densify_fract Double precision ) : Double precision ; ST_HausdorffDistance( geom1 Geometry...;官方摘要:GEOS-advanced;return the Hausdorff distance between geom1 and geom2; learn more ; the optional argument densify_fract is the fraction (in the range 0.0 / 1.0 ) by which to densi... |
| 384 | FrechetDistance | 几何集合运算和派生 Geometry | 语法:FrechetDistance( geom1 Geometry , geom2 Geometry ) : Double precision ; FrechetDistance( geom1 Geometry , geom2 Geometry , densify_fract Double precision ) : Double precision ; ST_FrechetDistance( geom1 Geometry , geo...;官方摘要:GEOS-advanced;return the Fréchet distance between geom1 and geom2; learn more ; the optional argument densify_fract is the fraction (in the range 0.0 / 1.0 ) by which to densify... |
| 385 | GEOSMinimumRotatedRectangle | 几何集合运算和派生 Geometry | 语法:GEOSMinimumRotatedRectangle( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Returns the minimum rotated rectangular POLYGON which encloses the input geometry.; The rectangle has width equal to the minimum diameter, and a longer length.; If... |
| 386 | OrientedEnvelope | 几何集合运算和派生 Geometry | 语法:OrientedEnvelope( geom Geometry ) : Geometry ; ST_OrientedEnvelope( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Just an alias-name for GEOSMinimumRotatedRectangle() . |
| 387 | GEOSMaximumInscribedCircle | 几何集合运算和派生 Geometry | 语法:GEOSMaximumInscribedCircle( geom Geometry , tolerance Double precision ) : Geometry;官方摘要:GEOS-advanced;Constructs the Maximum Inscribed Circle for a polygonal geometry, up to a specified tolerance.; The Maximum Inscribed Circle is determined by a point in the interi... |
| 388 | GEOSMinimumBoundingCircle | 几何集合运算和派生 Geometry | 语法:GEOSMinimumBoundingCircle( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Constructs the Minimum Bounding Circle for a generic geometry.; The Minimum Bounding Circle is the smallest circle that contains the input.; Returns a two-point li... |
| 389 | GEOSMinimumBoundingRadius | 几何集合运算和派生 Geometry | 语法:GEOSMinimumBoundingRadius( geom Geometry ) : Double precision;官方摘要:GEOS-advanced;Returns the Radius of the Minimum Bounding Circle for a generic geometry.; NULL is returned on failure.; This SQL function is only available when using GEOS 3.7.0 ... |
| 390 | GEOSMinimumBoundingCenter | 几何集合运算和派生 Geometry | 语法:GEOSMinimumBoundingCenter( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Returns a POINT Geometry corresponding to the Center of the Minimum Bounding Circle for a generic geometry.; NULL is returned on failure.; This SQL function is onl... |
| 391 | GEOSLargestEmptyCircle | 几何集合运算和派生 Geometry | 语法:GEOSLargestEmptyCircle( geom Geometry , tolerance Double precision ) : Geometry;官方摘要:GEOS-advanced;Constructs the Largest Empty Circle for a set of obstacle geometries, up to a specified tolerance. The obstacles are point and line geometries.; The Largest Empty ... |
| 392 | GEOSMinimumWidth | 几何集合运算和派生 Geometry | 语法:GEOSMinimumWidth( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Returns a LINESTRING geometry which represents the minimum diameter of the geometry.; The minimum diameter is defined to be the width of the smallest band that con... |
| 393 | GEOSMinimumClearance | 几何集合运算和派生 Geometry | 语法:GEOSMinimumClearance( geom Geometry ) : Double precision;官方摘要:GEOS-advanced;Computes the minimum clearance of a geometry.; The minimum clearance is the smallest amount by which a vertex could be move to produce an invalid polygon, a non-si... |
| 394 | GEOSMinimumClearanceLine | 几何集合运算和派生 Geometry | 语法:GEOSMinimumClearanceLine( geom Geometry ) : Geometry;官方摘要:GEOS-advanced;Returns a LineString whose endpoints define the minimum clearance of a geometry.; NULL is returned on failure, or if the geometry has no minimum clearance (as e.g... |
| 395 | GeosDensify | 几何集合运算和派生 Geometry | 语法:GeosDensify( geom Geometry , tolerance Double precision ) : Geometry;官方摘要:GEOS-3100;return a densified geometry using a given distance tolerance; Additional vertices will be added to every line segment that is greater this tolerance ; these vertices w... |
| 396 | GeosMakeValid | 几何集合运算和派生 Geometry | 语法:GeosMakeValid( geom Geometry , keep_collapsed boolean ) : Geometry;官方摘要:GEOS-3100;Attempts to make an invalid geometry valid (the GEOS way).; If the optional argument keep_collapsed is TRUE all collapsed items ( i.e. linestrings reduced to points or... |
| 397 | ReducePrecision | 几何集合运算和派生 Geometry | 语法:ReducePrecision( geom Geometry , grid_size Double precision ) : Geometry ; ST_ReducePrecision( geom Geometry , grid_size Double precision ) : Geometry;官方摘要:GEOS-3100;Change the coordinate precision of a geometry.; The output will be a valid Geometry.; NULL is returned on failure. |
| 398 | HilbertCode | 几何集合运算和派生 Geometry | 语法:HilbertCode( geom Geometry , extent Geometry , level integer ] ) : Integer;官方摘要:GEOS-3110;Calculate the Hilbert Code of the centroid of a Geometry relative to an Extent.; This allows sorting geometries in a deterministic way, such that similar Hilbert Codes... |
| 399 | GeosConcaveHull | 几何集合运算和派生 Geometry | 语法:GeosConcaveHull( geom Geometry , ratio Double precision , allow_holes Boolean ) : Geometry;官方摘要:GEOS-3110;return a geometric object representing the ConcaveHull corresponding to the input Geometry; The input Geometry could have any arbitrary type; eventually all Linestring... |
9.34 SQL functions that implement spatial operators;RTTOPO features
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 400 | MakeValid | 几何集合运算和派生 Geometry | 语法:MakeValid( geom Geometry ) : Geometry ; ST_MakeValid( geom Geometry ) : Geometry;官方摘要:RTTOPO;return a geometric object representing the repaired version of the input Geometry.; If the input Geometry was already valid, then it will be returned exactly as it was.; ... |
| 401 | MakeValidDiscarded | 几何集合运算和派生 Geometry | 语法:MakeValidDiscarded( geom Geometry ) : Geometry ; ST_MakeValidDiscarded( geom Geometry ) : Geometry;官方摘要:RTTOPO;return a geometric object containing all elements that would be eventually discarded by ST_MakeValid() while validating the same input Geometry.; NULL is returned on fail... |
| 402 | Segmentize | 几何集合运算和派生 Geometry | 语法:Segmentize( geom Geometry , dist Double precision ) : Geometry ; ST_Segmentize( geom Geometry , dist Double precision ) : Geometry;官方摘要:RTTOPO;return a new Geometry corresponding to the input Geometry; as much Linestring / Ring vertices as required will be eventually interpolated so to ensure that no segment wil... |
| 403 | Split | 几何集合运算和派生 Geometry | 语法:Split( geom Geometry , blade Geometry ) : Geometry ; ST_Split( geom Geometry , blade Geometry ) : Geometry;官方摘要:RTTOPO;return a new Geometry collecting all items resulting by splitting the input Geometry by the blade .; NULL is returned on failure. |
| 404 | SplitLeft | 几何集合运算和派生 Geometry | 语法:SplitLeft( geom Geometry , blade Geometry ) : Geometry ; ST_SplitLeft( geom Geometry , blade Geometry ) : Geometry;官方摘要:RTTOPO;return a new Geometry collecting all items resulting by splitting the input Geometry by the blade and falling on the left side .; All items not affected by the split oper... |
| 405 | SplitRight | 几何集合运算和派生 Geometry | 语法:SplitRight( geom Geometry , blade Geometry ) : Geometry ; ST_SplitRight( geom Geometry , blade Geometry ) : Geometry;官方摘要:RTTOPO;return a new Geometry collecting all items resulting by splitting the input Geometry by the blade and falling on the right side .; NULL is returned on failure (or if the ... |
| 406 | SnapAndSplit | 几何集合运算和派生 Geometry | 语法:SnapAndSplit( geom1 Geometry , geom2 Geometry , tolerance Double precision ) : Geometry ; ST_SnapAndSplit( geom1 Geometry , geom2 Geometry , tolerance Double precision ) : Geometry;官方摘要:RTTOPO;This one simply is a convenience function accepting the same arguments of ST_Snap() (with identical meaning). geom1 is expected to be a LINESTRING or a MULTILINESTRING ge... |
| 407 | Azimuth | 几何集合运算和派生 Geometry | 语法:Azimuth( pt1 Geometry , pt2 Geometry ) : Double precision ; ST_Azimuth( pt1 Geometry , pt2 Geometry ) : Double precision;官方摘要:RTTOPO;return the angle (in radians) from the horizontal of the vector defined by pt1 and pt2 .; Both pt1 and pt2 are expected to be simple Points.; Starting since 4.1.0 if both... |
| 408 | Project | 几何集合运算和派生 Geometry | 语法:Project( start_point Geometry , distance Double precision , azimuth Double precision ) : Geometry ; ST_Project( start_point Geometry , distance Double precision , azimuth Double precision ) : Geometry;官方摘要:RTTOPO;return a new Point projected from a start point using a bearing and distance.; start_point is expected to be simple long/lat Point.; distance is expected to be measured i... |
| 409 | SnapToGrid | 几何集合运算和派生 Geometry | 语法:SnapToGrid( geom Geometry , size Double precision ) : Geometry ; SnapToGrid( geom Geometry , size_x Double precision , size_y Double precision ) : Geometry ; SnapToGrid( geom Geometry , origin_x Double precision , ori...;官方摘要:base;return a new Geometry corresponding to the input Geometry; all points and vertices will be snapped to the grid defined by its origin and size(s).; Removes all consecutive p... |
| 410 | GeoHash | 几何集合运算和派生 Geometry | 语法:GeoHash( geom Geometry , precision Integer ) : String ; ST_GeoHash( geom Geometry , precision Integer ) : String;官方摘要:RTTOPO;Return a GeoHash representation (geohash.org) of the geometry.; A GeoHash encodes a point into a text form that is sortable and searchable based on prefixing.; If no prec... |
| 411 | AsX3D | 几何集合运算和派生 Geometry | 语法:AsX3D( geom Geometry ) : String ; AsX3D( geom Geometry , precision Integer ) : String ; AsX3D( geom Geometry , precision Integer , options Integer ) : String ; AsX3D( geom Geometry , precision Integer , options Intege...;官方摘要:RTTOPO;Returns a geometry as an X3D XML formatted node element. |
| 412 | MaxDistance | 几何集合运算和派生 Geometry | 语法:MaxDistance( geom1 Geometry , geom2 Geometry ) : Double precision ; ST_MaxDistance( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:RTTOPO;return the max distance between geom1 and geom2 |
| 413 | 3DDistance | 几何集合运算和派生 Geometry | 语法:ST_3DDistance( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:RTTOPO;return the 3D-distance between geom1 and geom2 (Z coordinates will be considered) |
| 414 | 3DMaxDistance | 几何集合运算和派生 Geometry | 语法:ST_3DMaxDistance( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:RTTOPO;return the max 3D-distance between geom1 and geom2 (Z coordinates will be considered) |
| 415 | 3dLength | 几何集合运算和派生 Geometry | 语法:ST_3dLength( geom Geometry ) : Double precision;官方摘要:RTTOPO;return the total 2D or 3D-length of Linestring or MultiLinestring geometry.; Z coordinates if eventually present will be considered leading to a 3D measured length; other... |
| 416 | ST_Node | 几何集合运算和派生 Geometry | 语法:ST_Node( geom Geometry ) : Geometry;官方摘要:RTTOPO;Fully nodes a set of linestrings using the least possible number of nodes while preserving all of the input ones.; NULL will be returned if the input Geometry isn't a set... |
| 417 | SelfIntersections | 几何集合运算和派生 Geometry | 语法:SelfIntersections( geom Geometry ) : Geometry ; ST_SelfIntersections( geom Geometry ) : Geometry;官方摘要:RTTOPO;Returns a MultiPoint Geometry representing any self-intersection found within the input geometry expected to be of the Linestring or MultiLinestring type.; NULL will be... |
| 418 | ST_Subdivide | 几何集合运算和派生 Geometry | 语法:ST_Subdivide( geom Geometry ) : Geometry ; ST_Subdivide( geom Geometry , max_vertices Integer ) : Geometry;官方摘要:RTTOPO;Divides geom into many parts until each part can be represented using no more than max_vertices .; If the optional argument max_vertices is not explicitly specified a lim... |
9.35 SQL functions for coordinate transformations
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 419 | Transform | 坐标平移、缩放、旋转和 CRS 变换 | 语法:Transform( geom Geometry , newSRID Integer ) : Geometry ; ST_Transform( geom Geometry , newSRID Integer ) : Geometry ; Transform( geom Geometry , newSRID Integer , area_of_use Geometry ) : Geometry ; ST_Transform( geo...;官方摘要:PROJ;return a geometric object obtained by reprojecting coordinates into the Reference System identified by newSRID; All the following optional arguments are available only when... |
| 420 | TransformXY | 坐标平移、缩放、旋转和 CRS 变换 | 语法:TransformXY( geom Geometry , newSRID Integer ) : Geometry ; ST_TransformXY( geom Geometry , newSRID Integer ) : Geometry;官方摘要:PROJ;this is a special flavor of ST_Transform() ; just X and Y coordinates will be transformed, Z and M values (if eventually present) will be left untouched.; Mainly intended a... |
| 421 | TransformXYZ | 坐标平移、缩放、旋转和 CRS 变换 | 语法:TransformXYZ( geom Geometry , newSRID Integer ) : Geometry ; ST_TransformXYZ( geom Geometry , newSRID Integer ) : Geometry;官方摘要:PROJ;this is a special flavor of ST_Transform() ; just X , Y and Z coordinates will be transformed, M values (if eventually present) will be left untouched.; Mainly intended as ... |
| 422 | SridFromAuthCRS | 坐标平移、缩放、旋转和 CRS 变换 | 语法:SridFromAuthCRS( auth_name String , auth_SRID Integer ) : Integer;官方摘要:base;return the internal SRID corresponding to auth_name and auth_SRID ; -1 will be returned if no such CRS is defined |
| 423 | ShiftCoords / ShiftCoordinates | 坐标平移、缩放、旋转和 CRS 变换 | 语法:ShiftCoords( geom Geometry , shiftX Double precision , shiftY Double precision ) : Geometry ; ShiftCoordinates( geom Geometry , shiftX Double precision , shiftY Double precision ) : Geometry;官方摘要:base;return a geometric object obtained by translating coordinates according to shiftX and shiftY values |
| 424 | ST_Translate | 坐标平移、缩放、旋转和 CRS 变换 | 语法:ST_Translate( geom Geometry , shiftX Double precision , shiftY Double precision , shiftZ Double precision ) : Geometry;官方摘要:base;return a geometric object obtained by translating coordinates according to shiftX, shiftY and shiftZ values |
| 425 | ST_Shift_Longitude | 坐标平移、缩放、旋转和 CRS 变换 | 语法:ST_Shift_Longitude( geom Geometry ) : Geometry;官方摘要:base;return a geometric object obtained by translating any negative longitude by 360.; Only meaningful for geographic (longitude/latitude) coordinates.; Negative longitudes (-18... |
| 426 | NormalizeLonLat | 坐标平移、缩放、旋转和 CRS 变换 | 语法:NormalizeLonLat( geom Geometry ) : Geometry;官方摘要:base;return a geometric object obtained by normalizing any longitude in the range -180 / +180 and any latitude in the range -90 / + 90.; Only meaningful for geographic (long... |
| 427 | ScaleCoords / ScaleCoordinates | 坐标平移、缩放、旋转和 CRS 变换 | 语法:ScaleCoords( geom Geometry , scaleX Double precision , scaleY Double precision ) : Geometry ; ScaleCoordinates( geom Geometry , scaleX Double precision , scaleY Double precision ) : Geometry;官方摘要:base;return a geometric object obtained by scaling coordinates according to scaleX and scaleY values; if only one scale factor is specified, then an isotropic scaling occurs [i... |
| 428 | RotateCoords / RotateCoordinates | 坐标平移、缩放、旋转和 CRS 变换 | 语法:RotateCoords( geom Geometry , angleInDegrees Double precision ) : Geometry ; RotateCoordinates( geom Geometry , angleInDegrees Double precision ) : Geometry;官方摘要:base;return a geometric object obtained by rotating coordinates according to angleInDegrees value.; Positive angle = clockwise rotation.; Negative angle = counterclockwise rotat... |
| 429 | ReflectCoords / ReflectCoordinates | 坐标平移、缩放、旋转和 CRS 变换 | 语法:ReflectCoords( geom Geometry , xAxis Integer , yAxis Integer ) : Geometry ; ReflectCoordinates( geom Geometry , xAxis Integer , yAxis Integer ) : Geometry;官方摘要:base;return a geometric object obtained by reflecting coordinates according to xAxis and yAxis switches; i.e. if xAxis is 0 (FALSE), then x-coordinates remains untouched; otherw... |
| 430 | SwapCoords / SwapCoordinates | 坐标平移、缩放、旋转和 CRS 变换 | 语法:SwapCoords( geom Geometry ) : Geometry ; SwapCoordinates( geom Geometry ) : Geometry;官方摘要:base;return a geometric object obtained by swapping x- and y-coordinates |
9.36 SQL functions supporting Geodesic Arcs
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 431 | GeodesicArcLength | 地理坐标上的测量计算 | 语法:GeodesicArcLength( geom1 Geometry , geom2 Geometry ) : Double precision ; GeodesicArcLength( geom1 Geometry , geom2 Geometry , meters Boolean ) : Double precision;官方摘要:PROJ GEODESIC;returns the Arc length (distance) between geom1 and geom2 as the surface measurement of the outer circle arc / earth surface.; if meters = 0 the result will be in ... |
| 432 | GeodesicChordLength | 地理坐标上的测量计算 | 语法:GeodesicChordLength( geom1 Geometry , geom2 Geometry ) : Double precision ; GeodesicChordLength( geom1 Geometry , geom2 Geometry , meters Boolean ) : Double precision;官方摘要:PROJ GEODESIC;returns the length of the shortest line (distance) between geom1 and geom2 through the outer circle / earth surface.; if meters = 0 the result will be in degrees, ... |
| 433 | GeodesicCentralAngle | 地理坐标上的测量计算 | 语法:GeodesicCentralAngle( geom1 Geometry , geom2 Geometry ) : Double precision ; GeodesicCentralAngle( geom1 Geometry , geom2 Geometry , radians Boolean ) : Double precision;官方摘要:PROJ GEODESIC;returns the angle from the circle center to the geom1 and geom2 on the outer circle / earth surface.; if radians = 0 the result will be in degrees, otherwise radia... |
| 434 | GeodesicArcArea | 地理坐标上的测量计算 | 语法:GeodesicArcArea( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:PROJ GEODESIC;returns the area of the segment/arc between the Chord and Arc , created by geom1 and geom2 , inside the outer circle / earth surface.; Since the Radius is in meter... |
| 435 | GeodesicArcHeight | 地理坐标上的测量计算 | 语法:GeodesicArcHeight( geom1 Geometry , geom2 Geometry ) : Double precision;官方摘要:PROJ GEODESIC;returns the height of the segment/arc (short-Sagitta) between the Chord and Arc , created by geom1 and geom2 , inside the outer circle / earth surface.; Since the ... |
9.37 SQL functions supporting Affine Transformations and Ground Control Points
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 436 | ATM_Create | 空间 SQL 支撑函数 | 语法:ATM_Create( void ) : AffineMatrix ; ATM_Create( a Double , b Double , d Double , e Double , xoff Double , yoff Double ) : AffineMatrix ; ATM_Create( a Double , b Double , c Double , d Double , e Double , f Double , g ...;官方摘要:base;return a BLOB-encoded Affine Transformation matrix. the first form (no arguments) will return an Identity matrix. the second and third forms will respectively return a full... |
| 437 | ATM_CreateTranslate | 空间 SQL 支撑函数 | 语法:ATM_CreateTranslate( tx Double precision , ty Double precision ) : AffineMatrix ; ATM_CreateTranslate( tx Double precision , ty Double precision , tz Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing a 2D or 3D Translate transformation.; will return NULL on invalid arguments. |
| 438 | ATM_CreateScale | 空间 SQL 支撑函数 | 语法:ATM_CreateScale( sx Double precision , sy Double precision ) : AffineMatrix ; ATM_CreateScale( sx Double precision , sy Double precision , sz Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing a 2D or 3D Scale transformation.; will return NULL on invalid arguments. |
| 439 | ATM_CreateRotate | 空间 SQL 支撑函数 | 语法:ATM_CreateRotate( angleInDegrees Double precision ) : AffineMatrix ; ATM_CreateZRoll( angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing a Rotate transformation (along the Z axis ).; will return NULL on invalid argument. |
| 440 | ATM_CreateXRoll | 空间 SQL 支撑函数 | 语法:ATM_CreateXRoll( angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing a Rotate transformation (along the X axis ).; will return NULL on invalid argument. |
| 441 | ATM_CreateYRoll | 空间 SQL 支撑函数 | 语法:ATM_CreateYRoll( angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing a Rotate transformation (along the Y axis ).; will return NULL on invalid argument. |
| 442 | ATM_Multiply | 空间 SQL 支撑函数 | 语法:ATM_Multiply( matrixA AffineMatrix , matrixB AffineMatrix ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix representing the result of multiplying matrixA by matrixB .; will return NULL on invalid arguments. |
| 443 | ATM_Translate | 空间 SQL 支撑函数 | 语法:ATM_Translate( matrix AffineMatrix , tx Double precision , ty Double precision ) : AffineMatrix ; ATM_Translate( matrix AffineMatrix , tx Double precision , ty Double precision , tz Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix by chaining a further 2D or 3D Translate to a previous transformation matrix.; will return NULL on invalid arguments. |
| 444 | ATM_Scale | 空间 SQL 支撑函数 | 语法:ATM_Scale( matrix AffineMatrix , sx Double precision , sy Double precision ) : AffineMatrix ; ATM_Scale( matrix AffineMatrix , sx Double precision , sy Double precision , sz Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix by chaining a further 2D or 3D Scale to a previous transformation matrix.; will return NULL on invalid arguments. |
| 445 | ATM_Rotate | 空间 SQL 支撑函数 | 语法:ATM_Rotate( matrix AffineMatrix , angleInDegrees Double precision ) : AffineMatrix ; ATM_ZRoll( matrix AffineMatrix , angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix by chaining a further Rotate (along the Z axis ) to a previous transformation matrix.; will return NULL on invalid argument. |
| 446 | ATM_XRoll | 空间 SQL 支撑函数 | 语法:ATM_XRoll( matrix AffineMatrix , angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix by chaining a further Rotate (along the X axis ) to a previous transformation matrix.; will return NULL on invalid argument. |
| 447 | ATM_YRoll | 空间 SQL 支撑函数 | 语法:ATM_YRoll( matrix AffineMatrix , angleInDegrees Double precision ) : AffineMatrix;官方摘要:base;return a BLOB-encoded Affine Transformation matrix by chaining a further Rotate (along the Y axis ) to a previous transformation matrix.; will return NULL on invalid argument. |
| 448 | ATM_Determinant | 空间 SQL 支撑函数 | 语法:ATM_Determinant( matrix AffineMatrix ) : Double precision;官方摘要:base;return the Determinant from an Affine Transformation matrix.; will return 0.0 on invalid argument. |
| 449 | ATM_IsInvertible | 空间 SQL 支撑函数 | 语法:ATM_IsInvertible( matrix AffineMatrix ) : Integer;官方摘要:base;return 1 if the Affine Transformation matrix can be inverted, 0 if not.; will return -1 on invalid argument. |
| 450 | ATM_Invert | 空间 SQL 支撑函数 | 语法:ATM_Invert( matrix AffineMatrix ) : AffineMatrix;官方摘要:base;return an inverted Affine Transformation matrix.; will return NULL on invalid argument. |
| 451 | ATM_IsValid | 空间 SQL 支撑函数 | 语法:ATM_IsValid( matrix AffineMatrix ) : Integer;官方摘要:base;return 1 if the BLOB argument really contains a valid Affine Transformation matrix, 0 if not.; will return -1 on invalid argument. |
| 452 | ATM_AsText | 空间 SQL 支撑函数 | 语法:ATM_AsText( matrix AffineMatrix ) : Text;官方摘要:base;return a serialized text string corresponding to an Affine Transformation matrix.; will return NULL on invalid argument. |
| 453 | ATM_Transform | 空间 SQL 支撑函数 | 语法:ATM_Transform( geom Geometry , matrix AffineMatrix , newSRID Integer ) : Geometry;官方摘要:base;return a geometric object obtained by applying an Affine Transformation; if the optional arg newSRID is defined then the returned Geometry will assume the corresponding Ref... |
| 454 | GCP_Compute | 空间 SQL 支撑函数 | 语法:GCP_Compute( pointA Geometry , pointB Geometry , order Integer ) : PolynomialCoeffs;官方摘要:GrassGis code;GPLv2+;return BLOB-encoded objects containing Polynomial coefficients computed from a set of matching Ground Control Points pairs. pointA corresponds to the origin... |
| 455 | GCP_IsValid | 空间 SQL 支撑函数 | 语法:GCP_IsValid( matrix PolynomialCoeffs ) : Integer;官方摘要:GrassGis code;GPLv2+;return 1 if the BLOB argument really contains valid Polynomial coeffs, 0 if not.; will return -1 on invalid argument. |
| 456 | GCP_AsText | 空间 SQL 支撑函数 | 语法:GCP_AsText( matrix PolynomialCoeffs ) : Text;官方摘要:GrassGis code;GPLv2+;return a serialized text string corresponding to the Polynomial coeffs.; will return NULL on invalid argument. |
| 457 | GCP2ATM | 空间 SQL 支撑函数 | 语法:GCP2ATM( matrix PolynomialCoeffs ) : AffineMatrix;官方摘要:GrassGis code;GPLv2+;return an Affine Transformation matrix corresponding to the Polynomial coeffs.; Only a set of Polynomial coeffs of the 1st order can be converted to an Affi... |
| 458 | GCP_Transform | 空间 SQL 支撑函数 | 语法:GCP_Transform( geom Geometry , coeffs PolynomialCoeffs , newSRID Integer ) : Geometry;官方摘要:GrassGis code;GPLv2+;return a geometric object obtained by applying a Transformation based on Polynomial coefficients of the 1st , 2nd or 3rd order ; if the optional arg newSRID... |
9.38 SQL functions for Spatial-MetaData and Spatial-Index handling
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 459 | InitSpatialMetaData | 空间元数据、GeoTable 和空间索引 | 语法:InitSpatialMetaData( void ) : Integer ; InitSpatialMetaData( transaction Integer ) : Integer ; InitSpatialMetaData( mode String ) : Integer ; InitSpatialMetaData( transaction Integer , mode String ) : Integer;官方摘要:base;Creates the geometry_columns and spatial_ref_sys metadata tables; the return type is Integer, with a return value of 1 for TRUE or 0 for FALSE if the optional argument tran... |
| 460 | InitAdvancedMetaData | 空间元数据、GeoTable 和空间索引 | 语法:InitAdvancedMetaData( void ) : Integer ; InitAdvancedMetaData( transaction Integer ) : Integer;官方摘要:base;This one simply is an utility function intended to create several ancillary metadata tables required by libspatialite v.5 and subsequent versions.; the return type is Integ... |
| 461 | InitSpatialMetaDataFull | 空间元数据、GeoTable 和空间索引 | 语法:InitSpatialMetaDataFull( void ) : Integer ; InitSpatialMetaDataFull( transaction Integer ) : Integer ; InitSpatialMetaDataFull( mode String ) : Integer ; InitSpatialMetaDataFull( transaction Integer , mode String ) : ...;官方摘要:base;This one simply is a convenience function accepting the same arguments of InitSpatialMetaData() (with identical meaning).; The intended scope is to fully initialize all met... |
| 462 | CreateMissingSystemTables | 空间元数据、GeoTable 和空间索引 | 语法:CreateMissingSystemTables( void ) : Integer ; CreateMissingSystemTables( relaxed Integer ) : Integer ; CreateMissingSystemTables( relaxed Integer , transaction Integer ) : Integer;官方摘要:base;This function will create any missing ancillary metadata table required by libspatialite v.5 and subsequent versions.; the optional argument relaxed has the same interpreta... |
| 463 | CreateMissingRasterlite2Columns | 空间元数据、GeoTable 和空间索引 | 语法:CreateMissingRasterlite2Columns( void ) : Integer;官方摘要:base;This function will create any missing column on metadata tables required by librasterlite2 v.2 and subsequent versions.;; The return type is Integer, with a return value of... |
| 464 | InsertEpsgSrid | 空间元数据、GeoTable 和空间索引 | 语法:InsertEpsgSrid( srid Integer ) : Integer;官方摘要:base;Attempts to insert into spatial_ref_sys the EPSG definition uniquely identified by srid ; [the corresponding EPSG SRID definition will be copied from the inlined dataset de... |
| 465 | AddGeometryColumn | 空间元数据、GeoTable 和空间索引 | 语法:AddGeometryColumn( table String , column String , srid Integer , geom_type String , dimension String \[ , not_null Integer ] ) : Integer;官方摘要:X;base;Creates a new geometry column updating the Spatial Metadata tables and creating any required trigger in order to enforce constraints; geom_type has to be one of the follo... |
| 466 | AddTemporaryGeometryColumn | 空间元数据、GeoTable 和空间索引 | 语法:AddTemporaryGeometryColumn( db-prefix String , table String , column String , srid Integer , geom_type String , dimension String \[ , not_null Integer ] ) : Integer;官方摘要:base;Almost the same as AddGeometryColumn() , with a critical difference: db-prefix is the schema-name of some attached database Such an Attached Database must necessarily be of... |
| 467 | RecoverGeometryColumn | 空间元数据、GeoTable 和空间索引 | 语法:RecoverGeometryColumn( table String , column String , srid Integer , geom_type String , dimension Integer ) : Integer;官方摘要:base;Validates an existing ordinary column in order to possibly transform it in a real geometry column , thus updating the Spatial Metadata tables and creating any required trig... |
| 468 | DiscardGeometryColumn | 空间元数据、GeoTable 和空间索引 | 语法:DiscardGeometryColumn( table String , column String ) : Integer;官方摘要:base;Removes a geometry column from Spatial MetaData tables and drops any related trigger ; the column itself still continues to exist untouched as an ordinary, unconstrained co... |
| 469 | RegisterVirtualGeometry | 空间元数据、GeoTable 和空间索引 | 语法:RegisterVirtualGeometry( table String ) : Integer;官方摘要:base;Registers a VirtualShape or VirtualGeoJSON table into the Spatial MetaData tables; the VirtualShape table should be previously created by invoking CREATE VIRTUAL TABLE ... ... |
| 470 | DropVirtualGeometry | 空间元数据、GeoTable 和空间索引 | 语法:DropVirtualGeometry( table String ) : Integer;官方摘要:base;Removes a VirtualShape or VirtualGeoJSON table from the Spatial MetaData tables, dropping the VirtualTable table as well. ; the return type is Integer, with a return value ... |
| 471 | CreateSpatialIndex | 空间元数据、GeoTable 和空间索引 | 语法:CreateSpatialIndex( table String , column String ) : Integer;官方摘要:base;Builds an RTree Spatial Index on a geometry column , creating any required trigger required in order to enforce full data coherency between the main table and Spatial Index... |
| 472 | CreateTemporarySpatialIndex | 空间元数据、GeoTable 和空间索引 | 语法:CreateTemporarySpatialIndex( db-prefix String , table String , column String ) : Integer;官方摘要:base;Almost the same as CreateSpatialIndex() , but specifically intended to support Geometry columns created by AddTemporaryGeometryColumn() db-prefix is the schema-name of some... |
| 473 | CreateMbrCache | 空间元数据、GeoTable 和空间索引 | 语法:CreateMbrCache( table String , column String ) : Integer;官方摘要:base;Builds an MbrCache on a geometry column , creating any required trigger required in order to enforce full data coherency between the main table and the MbrCache; the return... |
| 474 | DisableSpatialIndex | 空间元数据、GeoTable 和空间索引 | 语法:DisableSpatialIndex( table String , column String ) : Integer;官方摘要:base;Disables an RTree Spatial Index or MbrCache , removing any related trigger ; the return type is Integer, with a return value of 1 for TRUE or 0 for FALSE |
| 475 | CheckShadowedRowid | 空间元数据、GeoTable 和空间索引 | 语法:CheckShadowedRowid( table String ) : Integer;官方摘要:base;Checks if some table has a physical column named "rowid" (caseless) shadowing the real ROWID.; the return type is Integer, with a return value of 1 for TRUE or 0 for FALSE;... |
| 476 | CheckWithoutRowid | 空间元数据、GeoTable 和空间索引 | 语法:CheckWithoutRowid( table String ) : Integer;官方摘要:base;Checks if some table was created by specifying a WITHOUT ROWID clause.; the return type is Integer, with a return value of 1 for TRUE or 0 for FALSE; NULL will be returned ... |
| 477 | CheckSpatialIndex | 空间元数据、GeoTable 和空间索引 | 语法:CheckSpatialIndex( void ) : Integer ; CheckSpatialIndex( table String , column String ) : Integer;官方摘要:base;Checks an RTree Spatial Index for validity and consistency if no arguments are passed, then any RTree defined into geometry_columns will be checked otherwise only the RTree... |
| 478 | RecoverSpatialIndex | 空间元数据、GeoTable 和空间索引 | 语法:RecoverSpatialIndex( no_check : Integer ) : Integer ; RecoverSpatialIndex( table String , column String , no_check : Integer ) : Integer;官方摘要:base;Recovers a ( possibly broken ) RTree Spatial Index if no arguments are passed, then any RTree defined into geometry_columns will be recovered otherwise only the RTree corre... |
| 479 | InvalidateLayerStatistics | 空间元数据、GeoTable 和空间索引 | 语法:InvalidateLayerStatistics( void ) : Integer ; InvalidateLayerStatistics( table String \[ , column String ) : Integer;官方摘要:base;Immediately and unconditionally invalidates the internal Layer Statistics if no arguments are passed, then internal statistics will be invalidated for any possible Geometry... |
| 480 | UpdateLayerStatistics | 空间元数据、GeoTable 和空间索引 | 语法:UpdateLayerStatistics( void ) : Integer ; UpdateLayerStatistics( table String , column String ) : Integer;官方摘要:base;Updates the internal Layer Statistics Feature Count and Total Extent if no arguments are passed, then internal statistics will be updated for any possible Geometry Column... |
| 481 | GetLayerExtent | 空间元数据、GeoTable 和空间索引 | 语法:GetLayerExtent( table String , column String \[ , mode Boolean ] ) : Geometry;官方摘要:base;Return the Envelope corresponding to the Total Extent ( bounding box ] of some Layer; if the Table/Layer only contains a single Geometry column passing the column name isn'... |
| 482 | CreateRasterCoveragesTable | 空间元数据、GeoTable 和空间索引 | 语法:CreateRasterCoveragesTable( void ) : Integer;官方摘要:base;Creates the raster_coverages table required by RasterLite-2 ; the return type is Integer, with a return value of 1 for TRUE (success) or 0 for FALSE (failure) |
| 483 | ReCreateRasterCoveragesTriggers | 空间元数据、GeoTable 和空间索引 | 语法:ReCreateRasterCoveragesTriggers( void ) : Integer;官方摘要:base;(Re)Creates all Triggers supporting the raster_coverages table required by RasterLite-2 ; the return type is Integer, with a return value of 1 for TRUE (success) or 0 for F... |
| 484 | CreateVectorCoveragesTables | 空间元数据、GeoTable 和空间索引 | 语法:CreateVectorCoveragesTables( void ) : Integer;官方摘要:base;Creates the vector_coverages and vector_coverages_srid tables required by RasterLite-2 ; the return type is Integer, with a return value of 1 for TRUE (success) or 0 for FA... |
| 485 | ReCreateVectorCoveragesTriggers | 空间元数据、GeoTable 和空间索引 | 语法:ReCreateVectorCoveragesTriggers( void ) : Integer;官方摘要:base;(Re)Creates all Triggers supporting the vector_coverages table required by RasterLite-2 ; the return type is Integer, with a return value of 1 for TRUE (success) or 0 for F... |
| 486 | RebuildGeometryTriggers | 空间元数据、GeoTable 和空间索引 | 语法:RebuildGeometryTriggers( table_name String , geometry_column_name String ) : integer;官方摘要:base;This function will reinstall all geometry-related Triggers for the named table.; the return type is Integer, with a return value of 1 for TRUE (success) or 0 for FALSE (fai... |
| 487 | UpgradeGeometryTriggers | 空间元数据、GeoTable 和空间索引 | 语法:UpgradeGeometryTriggers( transaction Integer ) : integer;官方摘要:base;This function will upgrade all geometry-related Triggers to the latest version (all DB tables declaring at least one Geometry will be affected by the upgrade).; If the tran... |
9.39 SQL functions supporting the MetaCatalog and related Statistics
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 488 | CreateMetaCatalogTables | 空间对象目录和统计 | 语法:CreateMetaCatalogTables( transaction Integer ) : Integer;官方摘要:base;Creates both splite_metacatalog and splite_metacatalog_statistics tables; splite_metacatalog will be populated so to describe every table/column currently defined within th... |
| 489 | UpdateMetaCatalogStatistics | 空间对象目录和统计 | 语法:UpdateMetaCatalogStatistics( transaction Integer , table_name String , column_name String ) : Integer ; UpdateMetaCatalogStatistics( transaction Integer , master_table String , table_name String , column_name String )...;官方摘要:base;Updates the splite_metacatalog_statistics table by computing the statistic summary for the required table/column.; if the first argument transaction is set to TRUE the whol... |
9.40 SQL functions supporting SLD/SE Styled Layers
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 490 | CreateStylingTables | 样式和图层注册 | 语法:CreateStylingTables() : Integer ; CreateStylingTables( relaxed Integer ) : Integer ; CreateStylingTables( relaxed Integer , transaction Integer ) : Integer;官方摘要:libxml2;Creates a set of tables supporting SLD/SE Styled Layers . if the optional argument relaxed is explicitly set as TRUE then a relaxed version of the validating Triggers wi... |
| 491 | ReCreateStylingTriggers | 样式和图层注册 | 语法:ReCreateStylingTriggers() : Integer ; ReCreateStylingTriggers( relaxed Integer ) : Integer ; ReCreateStylingTriggers( relaxed Integer , transaction Integer ) : Integer;官方摘要:libxml2;(Re)Creates once again all Triggers supporting SLD/SE Styled Layers tables. if the optional argument relaxed is explicitly set as TRUE then a relaxed version of the vali... |
| 492 | SE_RegisterVectorCoverage | 样式和图层注册 | 语法:SE_RegisterVectorCoverage( coverage_name String , f_table_name String , f_geometry_column String ) : Integer ; SE_RegisterVectorCoverage( coverage_name String , f_table_name String , f_geometry_column String , title S...;官方摘要:libxml2;Creates a Vector Coverage based on an already existing Spatial Table. coverage_name is the symbolic name uniquely identifying each Vector Coverage ( Primary Key ). f_tab... |
| 493 | SE_RegisterSpatialViewCoverage | 样式和图层注册 | 语法:SE_RegisterSpatialViewCoverage( coverage_name String , view_name String , view_geometry String ) : Integer ; SE_RegisterSpatialViewCoverage( coverage_name String , view_name String , view_geometry String , title Strin...;官方摘要:libxml2;Creates a Vector Coverage based on an already existing Spatial View. coverage_name is the symbolic name uniquely identifying each Vector Coverage ( Primary Key ). view_n... |
| 494 | SE_RegisterVirtualTableCoverage | 样式和图层注册 | 语法:SE_RegisterVirtualTableCoverage( coverage_name String , virt_name String , virt_geometry String ) : Integer ; SE_RegisterVirtualTableCoverage( coverage_name String , virt_name String , virt_geometry String , title Str...;官方摘要:libxml2;Creates a Vector Coverage based on an already existing Virtual Table of the VirtualShape or VirtualGeoJSON type. coverage_name is the symbolic name uniquely identifying ... |
| 495 | SE_RegisterTopoGeoCoverage | 样式和图层注册 | 语法:SE_RegisterTopoGeoCoverage( coverage_name String , topology_name String ) : Integer ; SE_RegisterTopoGeoCoverage( coverage_name String , topology_name String , title String , abstract String ) : Integer ; SE_RegisterT...;官方摘要:libxml2;Creates a Vector Coverage based on an already existing Topology-Geometry. coverage_name is the symbolic name uniquely identifying each Vector Coverage ( Primary Key ). t... |
| 496 | SE_RegisterTopoNetCoverage | 样式和图层注册 | 语法:SE_RegisterTopoNetCoverage( coverage_name String , network_name String ) : Integer ; SE_RegisterTopoNetCoverage( coverage_name String , network_name String , title String , abstract String ) : Integer ; SE_RegisterTop...;官方摘要:libxml2;Creates a Vector Coverage based on an already existing Topology-Network. coverage_name is the symbolic name uniquely identifying each Vector Coverage ( Primary Key ). to... |
| 497 | SE_UnregisterVectorCoverage | 样式和图层注册 | 语法:SE_UnregisterVectorCoverage( coverage_name String ) : Integer;官方摘要:libxml2;Completely removes an already defined Vector Coverage this including any furher depency; the underlying Spatial Table will be absolutely unaffected. coverage_name must i... |
| 498 | SE_SetVectorCoverageInfos | 样式和图层注册 | 语法:SE_SetVectorCoverageInfos( coverage_name String , title String , abstract String ) : Integer ; SE_SetVectorCoverageInfos( coverage_name String , title String , abstract String , is_queryable Boolen , is_editable Boole...;官方摘要:libxml2;Updates the descriptive infos associated to a Vector Coverage . coverage_name must identify an existing Vector Coverage. title and abstract represent the descriptive inf... |
| 499 | SE_SetVectorCoverageCopyright | 样式和图层注册 | 语法:SE_SetVectorCoverageCopyright( coverage_name String , copyright String ) : Integer ; SE_SetVectorCoverageCopyright( coverage_name String , copyright String , license String ): Integer;官方摘要:libxml2;Updates Copyright and License infos associated to a Vector Coverage . coverage_name must identify an existing Vector Coverage. copyright identifies the Copyright holder;... |
| 500 | SE_SetVectorCoverageVisibilityRange | 样式和图层注册 | 语法:SE_SetVectorCoverageVisibilityRange( coverage_name String , minScaleDenominator Double , maxScaleDenominator Double ): Integer;官方摘要:libxml2;Updates the Visibility Scale Range associated to a Vector Coverage . coverage_name must identify an existing Vector Coverage. minScaleDenominator and maxScaleDenominator... |
| 501 | SE_RegisterVectorCoverageSrid | 样式和图层注册 | 语法:SE_RegisterVectorCoverageSrid( coverage_name String , srid Integer ) : Integer;官方摘要:libxml2;Adds an alternative SRID to an already defined Vector Coverage. coverage_name must identify an existing Vector Coverage. srid is expected to match the corresponding entr... |
| 502 | SE_UnregisterVectorCoverageSrid | 样式和图层注册 | 语法:SE_UnregisterVectorCoverageSrid( coverage_name String , srid Integer ) : Integer;官方摘要:libxml2;Removes an already defined alternative SRID from a Vector Coverage. coverage_name and srid must identify some previously defined alternative SRID. ; the return type is I... |
| 503 | SE_UpdateVectorCoverageExtent | 样式和图层注册 | 语法:SE_UpdateVectorCoverageExtent() : Integer ; SE_UpdateVectorCoverageExtent( transaction Integer ) : Integer ; SE_UpdateVectorCoverageExtent( coverage_name String ) : Integer ; SE_UpdateVectorCoverageExtent( coverage_na...;官方摘要:libxml2;Updates the Extent boundary supporting a Vector Coverage, this including any eventually defined alternative SRID. if the optional coverage_name argument is set then only... |
| 504 | SE_RegisterVectorCoverageKeyword | 样式和图层注册 | 语法:SE_RegisterVectorCoverageeKeyword( coverage_name String , keyword String ) : Integer;官方摘要:libxml2;Adds a keyword to an already defined Vector Coverage. coverage_name must identify an existing Vector Coverage. keyword must not be already defined for the same Coverage... |
| 505 | SE_UnregisterVectorCoverageKeyword | 样式和图层注册 | 语法:SE_UnregisterVectorCoverageKeyword( coverage_name String , keyword String ) : Integer;官方摘要:libxml2;Removes an already defined keyword from a Vector Coverage. coverage_name and keyword must identify some previously defined keyword. ; the return type is Integer, with a ... |
| 506 | SE_AutoRegisterStandardBrushes | 样式和图层注册 | 语法:SE_AutoRegisterStandardBrushes( ) : NULL;官方摘要:libxml2;Inserts all Graphic Standard Brushes supported by RasterLite2 (if not already inserted).; Will be automatically invoked by CreateStylingTables() . |
| 507 | SE_RegisterExternalGraphic | 样式和图层注册 | 语法:SE_RegisterExternalGraphic( xlink_href String , resource BLOB ) : Integer ; SE_RegisterExternalGraphic( xlink_href String , resource BLOB , title String , abstract String , file_name String ) : Integer;官方摘要:libxml2;Inserts (or updates) an External Graphic Resource . xlink_href uniquely identifies each Resource ( Primary Key ). resource is expected to be a BLOB containing an image/g... |
| 508 | SE_UnregisterExternalGraphic | 样式和图层注册 | 语法:SE_UnregisterExternalGraphic( xlink_href String ) : Integer;官方摘要:libxml2;Deletes an already existing External Graphic Resource . xlink_href the External Resource to be deleted. ; the return type is Integer, with a return value of 1 for TRUE (... |
| 509 | SE_RegisterVectorStyle | 样式和图层注册 | 语法:SE_RegisterVectorStyle( style BLOB ) : Integer;官方摘要:libxml2;Inserts a new Vector Style definition. style is expected to be an XmlBLOB containing a valid SLD/SE Style of the Vector type.; If CreateStylingTables() was invoked witho... |
| 510 | SE_UnregisterVectorStyle | 样式和图层注册 | 语法:SE_UnregisterVectorStyle( style_id Integer , remove_all Integer ) : Integer ; SE_UnregisterVectorStyle( style_name Text , remove_all Integer ) : Integer;官方摘要:libxml2;Removes an already registered Vector Style definition. The Style to be removed could be referenced either by its unique Style Id or by its Style Name .; Any attempt to r... |
| 511 | SE_ReloadVectorStyle | 样式和图层注册 | 语法:SE_ReloadVectorStyle( style_id Integer , style BLOB ) : Integer ; SE_ReloadVectorStyle( style_name Text , style BLOB ) : Integer;官方摘要:libxml2;Updates an already existing Vector Style definition. style is expected to be an XmlBLOB containing a valid SLD/SE Style of the Vector type.; If CreateStylingTables() was... |
| 512 | SE_RegisterVectorStyledLayer | 样式和图层注册 | 语法:SE_RegisterVectorStyledLayer( coverage_name String , style_id Integer ) : Integer ; SE_RegisterVectorStyledLayer( coverage_name String , style_name Text ) : Integer;官方摘要:libxml2;Associates a Vector Style to a Vector Styled Layer . coverage_name must identify an existing Vector Layer. An already registered Style can be referenced either by its un... |
| 513 | SE_UnregisterVectorStyledLayer | 样式和图层注册 | 语法:SE_UnregisterVectorStyledLayer( coverage_name String , style_id Integer ) : Integer ; SE_UnregisterVectorStyledLayer( coverage_name String , style_name Text ) : Integer;官方摘要:libxml2;Removes an association between a Vector Style and a Vector Styled Layer . coverage_name must identify an existing Vector Layer. An already associated Style can be refere... |
| 514 | SE_RegisterRasterStyle | 样式和图层注册 | 语法:SE_RegisterRasterStyle( style BLOB ) : Integer;官方摘要:libxml2;Inserts a new Raster Style definition. style is expected to be an XmlBLOB containing a valid SLD/SE Style of the Raster type.; If CreateStylingTables() was invoked witho... |
| 515 | SE_UnregisterRasterStyle | 样式和图层注册 | 语法:SE_UnregisterRasterStyle( style_id Integer , remove_all Integer ) : Integer ; SE_UnregisterRasterStyle( style_name Text , remove_all Integer ) : Integer;官方摘要:libxml2;Removes an already registered Raster Style definition. The Style to be removed could be referenced either by its unique Style Id or by its Style Name .; Any attempt to r... |
| 516 | SE_ReloadRasterStyle | 样式和图层注册 | 语法:SE_ReloadRasterStyle( style_id Integer , style BLOB ) : Integer ; SE_ReloadRasterStyle( style_name Text , style BLOB ) : Integer;官方摘要:libxml2;Updates an already existing Raster Style definition. style is expected to be an XmlBLOB containing a valid SLD/SE Style of the Raster type.; If CreateStylingTables() was... |
| 517 | SE_RegisterRasterStyledLayer | 样式和图层注册 | 语法:SE_RegisterRasterStyledLayer( coverage_name String , style_id Integer ) : Integer ; SE_RegisterRasterStyledLayer( coverage_name String , style_name Text ) : Integer;官方摘要:libxml2;Associates a Raster Style to a Raster Styled Layer . coverage_name must identify an existing Raster Layer. An already registered Style can be referenced either by its un... |
| 518 | SE_UnregisterRasterStyledLayer | 样式和图层注册 | 语法:SE_UnregisterRasterStyledLayer( coverage_name String , style_id Integer ) : Integer ; SE_UnregisterRasterStyledLayer( coverage_name String , style_name Text ) : Integer;官方摘要:libxml2;Removes an association between a Raster Style and a Raster Styled Layer . coverage_name must identify an existing Raster Layer. An already associated Style can be refere... |
| 519 | SE_RegisterRasterCoverageSrid | 样式和图层注册 | 语法:SE_RegisterRasterCoverageSrid( coverage_name String , srid Integer ) : Integer;官方摘要:libxml2;Adds an alternative SRID to an already defined Raster Coverage. coverage_name must identify an existing Raster Coverage. srid is expected to match the corresponding entr... |
| 520 | SE_UnregisterRasterCoverageSrid | 样式和图层注册 | 语法:SE_UnregisterRasterCoverageSrid( coverage_name String , srid Integer ) : Integer;官方摘要:libxml2;Removes an already defined alternative SRID from a Raster Coverage. coverage_name and srid must identify some previously defined alternative SRID. ; the return type is I... |
| 521 | SE_UpdateRasterCoverageExtent | 样式和图层注册 | 语法:SE_UpdateRasterCoverageExtent() : Integer ; SE_UpdateRasterCoverageExtent( transaction Integer ) : Integer ; SE_UpdateRasterCoverageExtent( coverage_name String ) : Integer ; SE_UpdateRasterCoverageExtent( coverage_na...;官方摘要:libxml2;Updates the Extent boundary supporting a Raster Coverage, this including any eventually defined alternative SRID. if the optional coverage_name argument is set then only... |
| 522 | SE_RegisterRasterCoverageKeyword | 样式和图层注册 | 语法:SE_RegisterRasterCoverageKeyword( coverage_name String , keyword String ) : Integer;官方摘要:libxml2;Adds a keyword to an already defined Raster Coverage. coverage_name must identify an existing Raster Coverage. keyword must not be already defined for the same Coverage... |
| 523 | SE_UnregisterRasterCoverageKeyword | 样式和图层注册 | 语法:SE_UnregisterRasterCoverageKeyword( coverage_name String , keyword String ) : Integer;官方摘要:libxml2;Removes an already defined keyword from a Raster Coverage. coverage_name and keyword must identify some previously defined keyword. ; the return type is Integer, with a ... |
| 524 | RL2_RegisterMapConfiguration | 样式和图层注册 | 语法:RL2_RegisterMapConfiguration( config BLOB ) : Integer;官方摘要:libxml2;Inserts a new RL2 Map Configuration definition. config is expected to be an XmlBLOB containing a valid RL2 Map Configuration.; If CreateStylingTables() was invoked witho... |
| 525 | RL2_UnregisterMapConfiguration | 样式和图层注册 | 语法:RL2_UnregisterMapConfiguration( config_id Integer ) : Integer ; RL2_UnregisterMapConfiguration( config_name Text ) : Integer;官方摘要:libxml2;Removes an already registered RL2 Map Configuration definition. The Map Configuration to be removed could be referenced either by its unique Config Id or by its Config N... |
| 526 | RL2_ReloadMapConfiguration | 样式和图层注册 | 语法:RL2_ReloadMapConfiguration( config_id Integer , config BLOB ) : Integer ; RL2_ReloadMapConfiguration( config_name Text , config BLOB ) : Integer;官方摘要:libxml2;Updates an already existing RL2 Map Configuration definition. config is expected to be an XmlBLOB containing a valid RL2 Map Configuration.; If CreateStylingTables() was... |
| 527 | RL2_NumMapConfigurations | 样式和图层注册 | 语法:RL2_NumMapConfigurations() : Integer;官方摘要:libxml2;Will return the total number of registered RL2 Map Configuration objects.; The return type is Integer; 0 will be returned if no registered Map Configuration exists, -1 w... |
| 528 | RL2_MapConfigurationNameN | 样式和图层注册 | 语法:RL2_MapConfigurationNameN( index Integer ) : Text;官方摘要:libxml2;Will return the name of the registered RL2 Map Configuration object corresponding to the index (1-based).; NULL will be returned on invalid argument or on error. |
| 529 | RL2_MapConfigurationTitleN | 样式和图层注册 | 语法:RL2_MapConfigurationTitleN( index Integer ) : Text;官方摘要:libxml2;Will return the title of the registered RL2 Map Configuration object corresponding to the index (1-based).; NULL will be returned on invalid argument or on error. |
| 530 | RL2_MapConfigurationAbstractN | 样式和图层注册 | 语法:RL2_MapConfigurationAbstractN( index Integer ) : Text;官方摘要:libxml2;Will return the abstract of the registered RL2 Map Configuration object corresponding to the index (1-based).; NULL will be returned on invalid argument or on error. |
9.41 SQL functions supporting ISO Metadata
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 531 | CreateIsoMetadataTables | ISO 元数据 | 语法:CreateIsoMetadataTables() : Integer ; CreateIsoMetadataTables( relaxed Integer ) : Integer;官方摘要:libxml2;Creates a set of tables supporting ISO Metadata . if the optional argument relaxed is specified (any value), then a relaxed version of the validating Triggers will be in... |
| 532 | ReCreateIsoMetaRefsTriggers | ISO 元数据 | 语法:ReCreateIsoMetaRefsTriggers() : Integer ; ReCreateIsoMetaRefsTriggers( enable_eval Integer ) : Integer;官方摘要:libxml2;Drops and creates again two Triggers supporting the ISO_metadata_reference table. the optional argument enable_eval chooses wich type of validating Triggers will be inst... |
| 533 | RegisterIsoMetadata | ISO 元数据 | 语法:RegisterIsoMetadata( scope String , metadata BLOB ) : Integer ; RegisterIsoMetadata( scope String , metadata BLOB , id Integer ) : Integer ; RegisterIsoMetadata( scope String , metadata BLOB , fileIdentifier String ) ...;官方摘要:libxml2;Inserts (or updates) an ISO Metadata definition. scope can be one of undefined , fieldSession , collectionSession , series , dataset , featureType , feature , attributeT... |
| 534 | GetIsoMetadataId | ISO 元数据 | 语法:GetIsoMetadataId( fileIdentifier String ) : Integer;官方摘要:libxml2;Return the unique id corresponding to the ISO Metadata definition identified by fileIdentifier .; If no corresponding ISO Metadata definition exists, this function will ... |
9.42 SQL functions implementing FDO/OGR compatibility
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 535 | CheckSpatialMetaData | FDO/OGR 兼容 | 语法:CheckSpatialMetaData( void ) : Integer ; CheckSpatialMetaData( db_prefix String ) : Integer;官方摘要:base;Checks the Spatial Metadata type, then returning: -1 - on invalid args or if no ATTACHED-DB identified by db_prefix exists. 0 - if the geometry_columns or spatial_ref_sys t... |
| 536 | AutoFDOStart | FDO/OGR 兼容 | 语法:AutoFDOStart( void ) : Integer ; AutoFDOStart( db_prefix String ) : Integer;官方摘要:base;This function will inspect the Spatial Metadata, then automatically creating/refreshing a VirtualFDO wrapper for each FDO/OGR geometry table; the return type is Integer [ho... |
| 537 | AutoFDOStop | FDO/OGR 兼容 | 语法:AutoFDOStop( void ) : Integer ; AutoFDOStop( db_prefix String ) : Integer;官方摘要:base;This function will inspect the Spatial Metadata, then automatically destroying any VirtualFDO wrapper found; the return type is Integer [how many VirtualFDO tables have bee... |
| 538 | InitFDOSpatialMetaData | FDO/OGR 兼容 | 语法:InitFDOSpatialMetaData( void ) : Integer;官方摘要:base;Creates the geometry_columns and spatial_ref_sys metadata tables; the return type is Integer, with a return value of 1 for TRUE or 0 for FALSE; Please note: Spatial Metadat... |
| 539 | AddFDOGeometryColumn | FDO/OGR 兼容 | 语法:AddFDOGeometryColumn( table String , column String , srid Integer , geom_type Integer , dimension Integer , geometry_format String ) : Integer;官方摘要:base;Creates a new geometry column updating the FDO/OGR Spatial Metadata tables; geom_type has to be one of the followings: 1 POINT 2 LINESTRING 3 POLYGON 4 MULTIPOINT 5 MULTILI... |
| 540 | RecoverFDOGeometryColumn | FDO/OGR 兼容 | 语法:RecoverFDOGeometryColumn( table String , column String , srid Integer , geom_type String , dimension Integer , geometry_format String ) : Integer;官方摘要:base;Validates an existing ordinary column in order to possibly transform it in a real geometry column , thus updating the FDO/OGR Spatial Metadata tables; the return type is In... |
| 541 | DiscardFDOGeometryColumn | FDO/OGR 兼容 | 语法:DiscardFDOGeometryColumn( table String , column String ) : Integer;官方摘要:base;Removes a geometry column from FDO/OGR Spatial MetaData tables; the column itself still continues to exist untouched as an ordinary column; the return type is Integer, with... |
9.43 SQL functions implementing OGC GeoPackage compatibility
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 542 | CheckGeoPackageMetaData | GeoPackage 兼容 | 语法:CheckGeoPackageMetaData( void ) : Integer ; CheckGeoPackageMetaData ( db_prefix String ) : Integer;官方摘要:base;This function will inspect the DB layout checking if it corresponds to the GPKG own style.; The optional db_prefix argument specifies which one of the ATTACHED databases is... |
| 543 | AutoGPKGStart | GeoPackage 兼容 | 语法:AutoGPKGStart( void ) : Integer ; AutoGPKGStart( db_prefix String ) : Integer;官方摘要:GeoPackage;This function will inspect the DB layout, then automatically creating/refreshing a VirtualGPKG wrapper for each GPKG geometry table; the return type is Integer [how m... |
| 544 | AutoGPKGStop | GeoPackage 兼容 | 语法:AutoGPKGStop( void ) : Integer ; AutoGPKGStop( db_prefix String ) : Integer;官方摘要:GeoPackage;This function will inspect the DB layout, then automatically destroying any VirtualGPKG wrapper found; the return type is Integer [how many VirtualGPKG tables have be... |
| 545 | gpkgCreateBaseTables | GeoPackage 兼容 | 语法:gpkgCreateBaseTables( void ) : void;官方摘要:GeoPackage;This function will create base tables for an "empty" GeoPackage; returns nothing on success, raises exception on error |
| 546 | gpkgInsertEpsgSRID | GeoPackage 兼容 | 语法:gpkgInsertEpsgSRID( srid Integer ) : void;官方摘要:GeoPackage;This function will add a spatial reference system entry for the specified EPSG identifier; it is an error to try to add the entry if it already exists; returns nothin... |
| 547 | gpkgCreateTilesTable | GeoPackage 兼容 | 语法:gpkgCreateTilesTable( tile_table_name String , srid Integer , min_x Double precision , min_y Double precision , max_x Double precision , max_y Double precision ) : void;官方摘要:GeoPackage;This function will create a new (empty) Tiles table and the triggers for that table; It also adds in the matching entries into gpkg_contents and gpkg_tile_matrix_set... |
| 548 | gpkgCreateTilesZoomLevel | GeoPackage 兼容 | 语法:gpkgCreateTilesZoomLevel( tile_table_name String , zoom_level Integer , extent_width Double precision , extent_height Double precision ) : void;官方摘要:GeoPackage;This function will add a zoom level for the specified table.; This function assumes usual tile conventions, including that the tiles are power-of-two-zoom, 256x256 pi... |
| 549 | gpkgAddTileTriggers | GeoPackage 兼容 | 语法:gpkgAddTileTriggers( tile_table_name String ) : void;官方摘要:GeoPackage;This function will add Geopackage tile table triggers for the named table.; returns nothing on success, raises exception on error |
| 550 | gpkgGetNormalZoom | GeoPackage 兼容 | 语法:gpkgGetNormalZoom( tile_table_name String , inverted_zoom_level Integer ) : Integer;官方摘要:GeoPackage;This function will return the normal integer zoom level for data stored in the specified table.; Note that this function can also be used to convert from a normal zoo... |
| 551 | gpkgGetNormalRow | GeoPackage 兼容 | 语法:gpkgGetNormalRow( tile_table_name String , normal_zoom_level Integer , inverted_row_number Integer ) : Integer;官方摘要:GeoPackage;This function will return the normal integer row number for the specified table, normal zoom level and inverted row number.; Note that this function can also be used ... |
| 552 | gpkgGetImageType | GeoPackage 兼容 | 语法:gpkgGetImageType( image Blob ) : String;官方摘要:GeoPackage;This function will return the image type (as a string) of the blob argument, or "unknown" if the image type is not one of the PNG, JPEG, TIFF or WebP format types tha... |
| 553 | gpkgAddGeometryColumn | GeoPackage 兼容 | 语法:gpkgAddGeometryColumn( table_name String , geometry_column_name String , geometry_type String , with_z Integer , with_m Integer , srs_id Integer ) : void;官方摘要:GeoPackage;Adds a geometry column to the specified table: geometry_type is a normal WKT name: "GEOMETRY" "POINT" "LINESTRING" "POLYGON" "MULTIPOINT" "MULTILINESTRING" "MULTIPOLY... |
| 554 | gpkgAddGeometryTriggers | GeoPackage 兼容 | 语法:gpkgAddGeometryTriggers( table_name String , geometry_column_name String ) : void;官方摘要:GeoPackage;This function will add Geopackage geometry table triggers for the named table.; returns nothing on success, raises exception on error |
| 555 | gpkgAddSpatialIndex | GeoPackage 兼容 | 语法:gpkgAddSpatialIndex( table_name String , geometry_column_name String ) : void;官方摘要:GeoPackage;This function will add Geopackage Spatial Index support for the named table.; returns nothing on success, raises exception on error |
| 556 | gpkgMakePoint | GeoPackage 兼容 | 语法:gpkgMakePoint (x Double precision , y Double precision ) : GPKG Blob Geometry ; gpkgMakePoint (x Double precision , y Double precision , srid Integer ) : GPKG Blob Geometry;官方摘要:GeoPackage;This function will create a GeoPackage geometry POINT.; Raises a SQL exception on error |
| 557 | gpkgMakePointZ | GeoPackage 兼容 | 语法:gpkgMakePointZ (x Double precision , y Double precision , z Double precision ) : GPKG Blob Geometry ; gpkgMakePointZ (x Double precision , y Double precision , z Double precision , srid Integer ) : GPKG Blob Geometry;官方摘要:GeoPackage;This function will create a GeoPackage geometry POINT Z.; Raises a SQL exception on error |
| 558 | gpkgMakePointM | GeoPackage 兼容 | 语法:gpkgMakePointM (x Double precision , y Double precision , m Double precision ) : GPKG Blob Geometry ; gpkgMakePointM (x Double precision , y Double precision , m Double precision , srid Integer ) : GPKG Blob Geometry;官方摘要:GeoPackage;This function will create a GeoPackage geometry POINT M.; Raises a SQL exception on error |
| 559 | gpkgMakePointZM | GeoPackage 兼容 | 语法:gpkgMakePointZM (x Double precision , y Double precision , z Double precision , m Double precision ) : GPKG Blob Geometry ; gpkgMakePointZM (x Double precision , y Double precision , z Double precision , m Double prec...;官方摘要:GeoPackage;This function will create a GeoPackage geometry POINT ZM.; Raises a SQL exception on error |
| 560 | IsValidGPB | GeoPackage 兼容 | 语法:IsValidGPB( geom Blob ) : Integer;官方摘要:GeoPackage;This function will inspect a BLOB then checking if it really corresponds to a GPKG own Geometry; the return type is Integer, with a return value of 1 for TRUE, 0 for ... |
| 561 | AsGPB | GeoPackage 兼容 | 语法:AsGPB( geom BLOB encoded geometry ) : GPKG Blob Geometry;官方摘要:GeoPackage;This function will convert a SpatiaLite geometry blob into a GeoPackage format geometry blob.; Will return NULL if any error is encountered |
| 562 | GeomFromGPB | GeoPackage 兼容 | 语法:GeomFromGPB( geom GPKG Blob Geometry ) : BLOB encoded geometry;官方摘要:GeoPackage;This function will convert a GeoPackage format geometry blob into a SpatiaLite geometry blob.; Will return NULL if any error is encountered |
| 563 | CastAutomagic | GeoPackage 兼容 | 语法:CastAutomagic( geom Blob ) : BLOB encoded geometry;官方摘要:GeoPackage;This function will indifferently accept on input: a SpatiaLite own BLOB Geometry a GPKG own BLOB Geometry then returning a SpatiaLite own BLOB geometry.; Will return ... |
| 564 | GPKG_IsAssignable | GeoPackage 兼容 | 语法:GPKG_IsAssignable( expected_type_name String , actual_type_name String ) : Integer;官方摘要:GeoPackage;This function will check if expected_type is the same or is a super-type of actual_type ; this function is required by the standard implementation of GPKG Geometry va... |
9.44 SQL functions for MbrCache-based queries
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 565 | FilterMbrWithin | MbrCache 查询过滤 | 语法:FilterMbrWithin( x1 Double precision , y1 Double precision , x2 Double precision , y2 Double precision );官方摘要:base;Retrieves from an MbrCache any entity whose MBR falls within the rectangle identified by extreme points x1 y1 and x2 y2 |
| 566 | FilterMbrContains | MbrCache 查询过滤 | 语法:FilterMbrContains( x1 Double precision , y1 Double precision , x2 Double precision , y2 Double precision );官方摘要:base;Retrieves from an MbrCache any entity whose MBR contains the rectangle identified by extreme points x1 y1 and x2 y2 |
| 567 | FilterMbrIntersects | MbrCache 查询过滤 | 语法:FilterMbrIntersects( x1 Double precision , y1 Double precision , x2 Double precision , y2 Double precision );官方摘要:base;Retrieves from an MbrCache any entity whose MBR intersects the rectangle identified by extreme points x1 y1 and x2 y2 |
| 568 | BuildMbrFilter | MbrCache 查询过滤 | 语法:BuildMbrFilter( x1 Double precision , y1 Double precision , x2 Double precision , y2 Double precision );官方摘要:base;Creates an MBR identified by extreme points x1 y1 and x2 y2 ; This fuction is used internally by triggers related to MbrCache management, and is not intended for any other ... |
9.45 SQL functions supporting XmlBLOB
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 569 | XB_Create | XML BLOB 读写、压缩和校验 | 语法:XB_Create( xmlPayload BLOB ) : XmlBLOB ; XB_Create( xmlPayload BLOB , compressed Boolean ) : XmlBLOB ; XB_Create( xmlPayload BLOB , compressed Boolean , schemaURI Text ) : XmlBLOB ; XB_Create( xmlPayload BLOB , compre...;官方摘要:libxml2;Construct an XmlBLOB object starting from an XmlDocument. If compressed is set to TRUE the XmlBlob object will be compressed (default setting). If schemaURI is specified... |
| 570 | XB_GetPayload | XML BLOB 读写、压缩和校验 | 语法:XB_GetPayload( xmlObject XmlBLOB , indent Integer ) : BLOB;官方摘要:libxml2;Extracts a generic BLOB from an XmlBLOB object, exactly corresponding to the original XmlDocument and fully preserving the original character encoding.; If the optional ... |
| 571 | XB_GetDocument | XML BLOB 读写、压缩和校验 | 语法:XB_GetDocument( xmlObject XmlBLOB , indent Integer ) : String;官方摘要:libxml2;Extracts an XmlDocument from an XmlBLOB object; the returned XmlDocument will always be UTF-8 encoded ( TEXT ), irrespectively from the original internal encoding declar... |
| 572 | XB_SchemaValidate | XML BLOB 读写、压缩和校验 | 语法:XB_SchemaValidate( xmlObject XmlBLOB , schemaURI Text , compressed Boolean ) : XmlBLOB ; XB_SchemaValidate( xmlObject XmlBLOB , internalSchemaURI Boolean , compressed Boolean ) : XmlBLOB;官方摘要:libxml2;Construct an XML validated XmlBLOB object starting from an XmlDocument. If compressed is set to TRUE the XmlBlob object will be compressed (default setting). If schemaUR... |
| 573 | XB_Compress | XML BLOB 读写、压缩和校验 | 语法:XB_Compress( xmlObject XmlBLOB ) : XmlBLOB;官方摘要:libxml2;A new compressed XmlBLOB object will be returned.; If the input XmlBLOB is already compressed this one is a harmless no-op.; NULL will be returned for any invalid input ... |
| 574 | XB_Uncompress | XML BLOB 读写、压缩和校验 | 语法:XB_Uncompress( xmlObject XmlBLOB ) : XmlBLOB;官方摘要:libxml2;A new uncompressed XmlBLOB object will be returned.; If the input XmlBLOB is already uncompressed this one is a harmless no-op.; NULL will be returned for any invalid in... |
| 575 | XB_IsValid | XML BLOB 读写、压缩和校验 | 语法:XB_IsValid( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 576 | XB_IsCompressed | XML BLOB 读写、压缩和校验 | 语法:XB_IsCompressed( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 577 | XB_IsSchemaValidated | XML BLOB 读写、压缩和校验 | 语法:XB_IsSchemaValidated( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 578 | XB_IsIsoMetadata | XML BLOB 读写、压缩和校验 | 语法:XB_IsIsoMetadata( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 579 | XB_IsSldSeVectorStyle | XML BLOB 读写、压缩和校验 | 语法:XB_IsSldSeVectorStyle( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 580 | XB_IsSldSeRasterStyle | XML BLOB 读写、压缩和校验 | 语法:XB_IsSldSeRasterStyle( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 581 | XB_IsSldStyle | XML BLOB 读写、压缩和校验 | 语法:XB_IsSldStyle( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 582 | XB_IsSvg | XML BLOB 读写、压缩和校验 | 语法:XB_IsSvg( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 583 | XB_IsGpx | XML BLOB 读写、压缩和校验 | 语法:XB_IsGpx( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 584 | XB_IsMapConfig | XML BLOB 读写、压缩和校验 | 语法:XB_IsMapConfig( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 585 | XB_GetDocumentSize | XML BLOB 读写、压缩和校验 | 语法:XB_GetDocumentSize( xmlObject XmlBLOB ) : Integer;官方摘要:libxml2;Will return the size in bytes of the corresponding uncompressed XmlDocument.; NULL will be returned for any invalid input (not a valid XmlBLOB object). |
| 586 | XB_GetEncoding | XML BLOB 读写、压缩和校验 | 语法:XB_GetEncoding( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the character encoding internally declared by the XmlDocument corresponding to the input XmlBLOB.; NULL will be returned for any invalid input (not a valid X... |
| 587 | XB_GetSchemaURI | XML BLOB 读写、压缩和校验 | 语法:XB_GetSchemaURI( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the Schema URI effectively used to validate an XmlBLOB.; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when the XmlBLOB isn't ... |
| 588 | XB_GetInternalSchemaURI | XML BLOB 读写、压缩和校验 | 语法:XB_GetInternalSchemaURI( xmlPayload BLOB ) : String;官方摘要:libxml2;Will return the Schema URI internally declared by the input XmlDocument ( xsi:noNamespeceSchemaLocation or xsi:schemaLocation ).; NULL will be returned for any invalid i... |
| 589 | XB_GetFileId | XML BLOB 读写、压缩和校验 | 语法:XB_GetFileId( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the FileIdentifier defined within the XmlBLOB (if any).; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when no FileIdentifier ... |
| 590 | XB_SetFileId | XML BLOB 读写、压缩和校验 | 语法:XB_SetFileId( xmlObject XmlBLOB , fileId String ) : XmlBLOB;官方摘要:libxml2;Will return a new XmlBLOB by replacing the FileIdentifier value.; The input XmlBLOB is expected to be of the ISO Metadata type and must containt an already defined FileI... |
| 591 | XB_AddFileId | XML BLOB 读写、压缩和校验 | 语法:XB_AddFileId( xmlObject XmlBLOB , fileId String , IdNameSpacePrefix String , IdNameSpaceURI String , CsNameSpacePrefix String , CsNameSpaceURI String ) : XmlBLOB;官方摘要:libxml2;Will return a new XmlBLOB by inserting a FileIdentifier value.; The input XmlBLOB is expected to be of the ISO Metadata type and must not containt an already defined Fil... |
| 592 | XB_GetParentId | XML BLOB 读写、压缩和校验 | 语法:XB_GetParentId( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the ParentIdentifier defined within the XmlBLOB (if any).; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when no ParentIdentif... |
| 593 | XB_SetParentId | XML BLOB 读写、压缩和校验 | 语法:XB_SetParentId( xmlObject XmlBLOB , parentId String ) : XmlBLOB;官方摘要:libxml2;Will return a new XmlBLOB by replacing the ParentIdentifier value.; The input XmlBLOB is expected to be of the ISO Metadata type and must containt an already defined Par... |
| 594 | XB_AddParentId | XML BLOB 读写、压缩和校验 | 语法:XB_AddParentId( xmlObject XmlBLOB , parentId String , IdNameSpacePrefix String , IdNameSpaceURI String , CsNameSpacePrefix String , CsNameSpaceURI String ) : XmlBLOB;官方摘要:libxml2;Will return a new XmlBLOB by inserting a ParentIdentifier value.; The input XmlBLOB is expected to be of the ISO Metadata type and must not containt an already defined P... |
| 595 | XB_GetTitle | XML BLOB 读写、压缩和校验 | 语法:XB_GetTitle( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the Title defined within the XmlBLOB (if any).; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when no Title is defined.;Suppor... |
| 596 | XB_GetAbstract | XML BLOB 读写、压缩和校验 | 语法:XB_GetAbstract( xmlObject XmlBLOB ) : String;官方摘要:libxml2;Will return the Abstract defined within the XmlBLOB (if any).; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when no Abstract is defined.;... |
| 597 | XB_GetGeometry | XML BLOB 读写、压缩和校验 | 语法:XB_GetGeometry( xmlObject XmlBLOB ) : Geometry;官方摘要:libxml2;Will return the Geometry (Bounding Box) defined within the XmlBLOB (if any).; NULL will be returned for any invalid input (not a valid XmlBLOB object), or when no Boundi... |
| 598 | XB_MLineFromGPX | XML BLOB 读写、压缩和校验 | 语法:XB_MLineFromGPX( xmlObject XmlBLOB ) : Geometry;官方摘要:libxml2;Will return a Geometry of the MULTILINESTRING XYZM type by parsing an XmlBLOB corresponding to a GPX document.; NULL will be returned for any invalid input (not a valid ... |
| 599 | XB_GetLastParseError | XML BLOB 读写、压缩和校验 | 语法:XB_GetLastParseError( void ) : String;官方摘要:libxml2;Will return the most recent XML parsing error (if any).; NULL will be returned if there is no pending parsing error. |
| 600 | XB_GetLastValidateError | XML BLOB 读写、压缩和校验 | 语法:XB_GetLastValidateError( void ) : String;官方摘要:libxml2;Will return the most recent XML validating error (if any).; NULL will be returned if there is no pending validating error. |
| 601 | XB_IsValidXPathExpression | XML BLOB 读写、压缩和校验 | 语法:XB_IsValidXPathExpression( expr Text ) : Integer;官方摘要:libxml2;The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and --1 for UNKNOWN when called with a NULL argument. |
| 602 | XB_GetLastXPathError | XML BLOB 读写、压缩和校验 | 语法:XB_GetLastXPathError( void ) : String;官方摘要:libxml2;Will return the most recent XPath error (if any).; NULL will be returned if there is no pending XPath error. |
| 603 | XB_CacheFlush | XML BLOB 读写、压缩和校验 | 语法:XB_CacheFlush( void ) : Boolean;官方摘要:libxml2;Reset the internal XML Schema cache to its initial empty state. |
| 604 | XB_LoadXML | XML BLOB 读写、压缩和校验 | 语法:XB_LoadXML( filepath-or-URL String ) : BLOB;官方摘要:libxml2;If filepath-or-URL corresponds to some valid local pathname, and the corresponding file (expected to contain a well-formed XML Document) can be actually accessed in read... |
| 605 | XB_StoreXML | XML BLOB 读写、压缩和校验 | 语法:XB_StoreXML( XmlObject XmlBLOB , filepath String ) : Integer ; XB_StoreXML( XmlObject XmlBLOB , filepath String , indent Integer ) : Integer;官方摘要:libxml2;If XmlObject is of the XmlBLOB-type, and if filepath corresponds to some valid pathname (accessible in write/create mode), then the corresponding file will be created/ov... |
9.46 SQL functions supporting SRID inspection
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 606 | SridIsGeographic | SRID 和 CRS 属性检查 | 语法:SridIsGeographic( SRID Integer ) : Integer;官方摘要:Will inspect the SRID definitions checking if the SRID is of the Geographic type;; will return 1 (i.e. TRUE ) or 0 (i.e. FALSE ).; NULL will be returned on invalid argument or i... |
| 607 | SridIsProjected | SRID 和 CRS 属性检查 | 语法:SridIsProjected( SRID Integer ) : Integer;官方摘要:Will inspect the SRID definitions checking if the SRID is of the Projected type;; will return 1 (i.e. TRUE ) or 0 (i.e. FALSE ).; NULL will be returned on invalid argument or if... |
| 608 | SridHasFlippedAxes | SRID 和 CRS 属性检查 | 语法:SridHasFlippedAxes( SRID Integer ) : Integer;官方摘要:Will inspect the SRID definitions checking if the SRID requires a flipped Axes configuration: i.e. Y,X instead of the most usual X,Y ;; will return 1 (i.e. TRUE ) or 0 (i.e. FAL... |
| 609 | SridGetSpheroid | SRID 和 CRS 属性检查 | 语法:SridGetSpheroid( SRID Integer ) : Text ; SridGetEllipsoid( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Spheroid name.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 610 | SridGetPrimeMeridian | SRID 和 CRS 属性检查 | 语法:SridGetPrimeMeridian( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Prime Meridian name.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 611 | SridGetDatum | SRID 和 CRS 属性检查 | 语法:SridGetDatum( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Datum name.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 612 | SridGetUnit | SRID 和 CRS 属性检查 | 语法:SridGetUnit( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Unit name.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 613 | SridGetProjection | SRID 和 CRS 属性检查 | 语法:SridGetProjection( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Projection name.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 614 | SridGetAxis_1_Name | SRID 和 CRS 属性检查 | 语法:SridGetAxis_1_Name( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Name for its first axis.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 615 | SridGetAxis_1_Orientation | SRID 和 CRS 属性检查 | 语法:SridGetAxis_1_Orientation( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Orientation for its first axis.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 616 | SridGetAxis_2_Name | SRID 和 CRS 属性检查 | 语法:SridGetAxis_2_Name( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Name for its second axis.; NULL will be returned on invalid argument or if the SRID is undefined. |
| 617 | SridGetAxis_2_Orientation | SRID 和 CRS 属性检查 | 语法:SridGetAxis_2_Orientation( SRID Integer ) : Text;官方摘要:Will inspect the SRID definitions then returning the appropriate Orientation for its second axis.; NULL will be returned on invalid argument or if the SRID is undefined. |
9.47 SQL functions supporting new PROJ.6 API
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 618 | PROJ_GetDatabasePath | PROJ.6 CRS 辅助接口 | 语法:PROJ_GetDatabasePath( void ) : String;官方摘要:Will return the currently set pathname leading to the private PROJ's SQLite database.; NULL will be returned if there is no private PROJ's SQLite database currently connected.; ... |
| 619 | PROJ_SetDatabasePath | PROJ.6 CRS 辅助接口 | 语法:PROJ_SetDatabasePath( new_path String ) : String;官方摘要:Will change the currently set pathname leading to the private PROJ's SQLite database.; NULL will be returned if the passed path is invalid, otherwise the path of the currently s... |
| 620 | PROJ_AsProjString | PROJ.6 CRS 辅助接口 | 语法:PROJ_AsProjString( auth_name String , auth_srid Integer ) : String;官方摘要:Will return the proj-string expression corresponding to a given Reference System; the definitions will be taken directly from the private PROJ's own database. auth_name and auth... |
| 621 | PROJ_AsWKT | PROJ.6 CRS 辅助接口 | 语法:PROJ_AsWKT( auth_name String , auth_srid Integer ) : String ; PROJ_AsWKT( auth_name String , auth_srid Integer , style String ) : String ; PROJ_AsWKT( auth_name String , auth_srid Integer , style String , indented Boo...;官方摘要:Will return the WKT expression corresponding to a given Reference System; the definitions will be taken directly from the private PROJ's own database. auth_name and auth_srid id... |
| 622 | PROJ_GuessSridFromWKT | PROJ.6 CRS 辅助接口 | 语法:PROJ_GuessSridFromWKT( wkt String ) : Integer;官方摘要:Will return the SRID value if any corresponding to a given WKT expression defining a CRS.; -1 will be returned if no CRS supported by PROJ.6 matches the WKT expression.; NULL ... |
| 623 | PROJ_GuessSridFromSHP | PROJ.6 CRS 辅助接口 | 语法:PROJ_GuessSridFromSHP( filename String ) : Integer;官方摘要:Will return the SRID value if any corresponding to the CRS defined by the .PRJ member of the Shapefile.; Note : exactley as required by ImportSHP() filename must define an abs... |
| 624 | PROJ_GuessSridFromZipSHP | PROJ.6 CRS 辅助接口 | 语法:PROJ_GuessSridFromZipSHP( zip_path String , filename String ) : Integer;官方摘要:Will return the SRID value if any corresponding to the CRS defined by the .PRJ member of a zipped Shapefile.; This function is almost the same as PROJ_GuessSridFromSHP() , exc... |
9.48 SQL functions supporting Topology-Geometry
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 625 | GetLastTopologyException | 拓扑节点、边和面 | 语法:GetLastTopologyException( toponame Text ) : Text;官方摘要:RTTOPO;Will return the most recent exception raised by this Topo-Geo, or NULL if no exception is currently pending. |
| 626 | CreateTopoTables | 拓扑节点、边和面 | 语法:CreateTopoTables( ) : Integer;官方摘要:RTTOPO;Will create both topologies and networks meta-tables.; Will return 1 on success) or 0 on failure (including already existing tables). |
| 627 | ReCreateTopoTriggers | 拓扑节点、边和面 | 语法:ReCreateTopoTriggers( ) : Integer;官方摘要:RTTOPO;Will (re)create all Triggers supporting both topologies and networks meta-tables.; Will return 1 on success) or 0 on failure (including already existing tables). |
| 628 | InitTopoGeo | 拓扑节点、边和面 | 语法:ST_InitTopoGeo( toponame Text ) : Integer;官方摘要:X;RTTOPO;This SQL function is explicitly required by ISO 13249-3 , anyway it's simply implemented as an alias-name for CreateTopology ( toponame ) .; Will return 1 on success) o... |
| 629 | CreateTopology | 拓扑节点、边和面 | 语法:CreateTopology( toponame Text ) : Integer ; CreateTopology( toponame Text , srid Integer ) : Integer ; CreateTopology( toponame Text , srid Integer , has_z Boolean ) : Integer ; CreateTopology( toponame Text , srid In...;官方摘要:RTTOPO;Will create all DBMS objects (tables, triggers, indices and alike) required in order to store a separate Topo-Geo. toponame : the individual unique name of this Topo-Geo:... |
| 630 | DropTopology | 拓扑节点、边和面 | 语法:DropTopology( toponame Text ) : Integer;官方摘要:RTTOPO;Completely removes a Topo-Geo (and all data it contains) from the DBMS: to be invoked very cautiously and only if you are absolutely sure of what you are doing.; Will ret... |
| 631 | AddIsoNode | 拓扑节点、边和面 | 语法:ST_AddIsoNode( toponame Text , face-id Integer , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new isolated Node; face-id is expected to exactly match the ID of the Face containing point ; by passing a NULL face-id the function itself will take care to... |
| 632 | MoveIsoNode | 拓扑节点、边和面 | 语法:ST_MoveIsoNode( toponame Text , node-id Integer , point Geometry ) : Text;官方摘要:X;RTTOPO;Will move an isolated Node from a point to another.; Will return a text message on success; an exception will be raised on failure. |
| 633 | RemIsoNode | 拓扑节点、边和面 | 语法:ST_RemIsoNode( toponame Text , node-id Integer ) : Text;官方摘要:X;RTTOPO;Will remove an isolated Node.; Will return a text message on success; an exception will be raised on failure. |
| 634 | AddIsoEdge | 拓扑节点、边和面 | 语法:ST_AddIsoEdge( toponame Text , startnode-id Integer , endnode-id Integer , linestring Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new isolated Edge connecting two isolated Nodes.; Will return the ID of the inserted Edge on success; an exception will be raised on failure. |
| 635 | ChangeEdgeGeom | 拓扑节点、边和面 | 语法:ST_ChangeEdgeGeom( toponame Text , edge-id Integer , linestring Geometry ) : Text;官方摘要:X;RTTOPO;Will change the geometry of an Edge without affecting Topology relationships.; Will return a text message on success; an exception will be raised on failure. |
| 636 | RemIsoEdge | 拓扑节点、边和面 | 语法:ST_RemIsoEdge( toponame Text , edge-id Integer ) : Text;官方摘要:X;RTTOPO;Will remove an isolated Edge.; Will return a text message on success; an exception will be raised on failure. |
| 637 | NewEdgesSplit | 拓扑节点、边和面 | 语法:ST_NewEdgesSplit( toponame Text , edge-id Integer , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will split an Edge by creating a new intermediate Node. The original Edge will be deleted and will be replaced by two new Edges.; Will return the ID of the inserted Nod... |
| 638 | ModEdgeSplit | 拓扑节点、边和面 | 语法:ST_ModEdgeSplit( toponame Text , edge-id Integer , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will split an Edge by creating a new intermediate Node. The original Edge will be modified and a new Edge will be inserted.; Will return the ID of the inserted Node on ... |
| 639 | NewEdgeHeal | 拓扑节点、边和面 | 语法:ST_NewEdgeHeal( toponame Text , edge1-id Integer , edge2-id Integer ) : Integer;官方摘要:X;RTTOPO;Will heal two Edges by deleting the Node connecting them. Both the original Edges will be deleted and will be replaced by a new Edge preserving the same orientation of ... |
| 640 | ModEdgeHeal | 拓扑节点、边和面 | 语法:ST_ModEdgeHeal( toponame Text , edge1-id Integer , edge2-id Integer ) : Integer;官方摘要:X;RTTOPO;Will heal two Edges by deleting the Node connecting them. The first Edge provided will be modified and the second deleted.; Will return the ID of the removed Node on su... |
| 641 | AddEdgeNewFaces | 拓扑节点、边和面 | 语法:ST_AddEdgeNewFaces( toponame Text , startnode-id Integer , endnode-id Integer , linestring Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new Edge connecting two Nodes. If this new Edge splits a Face the original Face will be deleted and replaced by two new Faces.; Will return the ID of the ins... |
| 642 | AddEdgeModFace | 拓扑节点、边和面 | 语法:ST_AddEdgeModFace( toponame Text , startnode-id Integer , endnode-id Integer , linestring Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new Edge connecting two Nodes. If this new Edge splits a Face the original Face will be modified and a new Face will be inserted.; Will return the ID of the ... |
| 643 | RemEdgeNewFace | 拓扑节点、边和面 | 语法:ST_RemEdgeNewFace( toponame Text , edge-id Integer ) : Integer;官方摘要:X;RTTOPO;Will remove an Edge. If the removed Edge separated two Faces the original Faces will be deleted and replaced by a new Face.; Will return the ID of the inserted Face on ... |
| 644 | RemEdgeModFace | 拓扑节点、边和面 | 语法:ST_RemEdgeModFace( toponame Text , edge-id Integer ) : Integer;官方摘要:X;RTTOPO;Will remove an Edge. If the removed Edge separated two Faces one of then will be modified and the other deleted.; Will return the ID of the surviving Face on success; a... |
| 645 | GetFaceGeometry | 拓扑节点、边和面 | 语法:ST_GetFaceGeometry( toponame Text , face-id Integer ) : Geometry;官方摘要:X;RTTOPO;Will return the exact Geometry of a Face.; Will return a Polygon on success; an exception will be raised on failure. |
| 646 | GetFaceEdges | 拓扑节点、边和面 | 语法:ST_GetFaceEdges( toponame Text , face-id Integer ) : DB-table;官方摘要:X;RTTOPO;Will update a DB-Table containing the ordered list of all Edges delimiting the given Face. The orientation will always be counterclockwise, and all Edges traversed in t... |
| 647 | ValidateTopoGeo | 拓扑节点、边和面 | 语法:ST_ValidateTopoGeo( toponame Text ) : DB-table;官方摘要:X;RTTOPO;Will create a DB-Table containing a validation report for the given TopoGeo: if the output table is empty and no exception was raised the Topology is assumed to be full... |
| 648 | CreateTopoGeo | 拓扑节点、边和面 | 语法:ST_CreateTopoGeo( toponame Text , geometry BLOB );官方摘要:X;RTTOPO;Will populate a full Topology by importing a collection of arbitrary Geometries.; The destination Topology must already exists and must be empty; both SRID and dimensio... |
| 649 | GetNodeByPoint | 拓扑节点、边和面 | 语法:GetNodeByPoint( toponame Text , point Geometry ) : Integer ; GetNodeByPoint( toponame Text , point Geometry , tolerance Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to find the ID of a Node located at Point. The optional argument tolerance if omitted will assume the corresponding value declared when creating the target T... |
| 650 | GetEdgeByPoint | 拓扑节点、边和面 | 语法:GetEdgeByPoint( toponame Text , point Geometry ) : Integer ; GetEdgeByPoint( toponame Text , point Geometry , tolerance Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to find the ID of an Edge intersecting the given Point. The optional argument tolerance if omitted will assume the corresponding value declared when creating... |
| 651 | GetFaceByPoint | 拓扑节点、边和面 | 语法:GetFaceByPoint( toponame Text , point Geometry ) : Integer ; GetFaceByPoint( toponame Text , point Geometry , tolerance Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to find the ID of a Face intersecting the given Point. The optional argument tolerance if omitted will assume the corresponding value declared when creating ... |
| 652 | TopoGeo_AddPoint | 拓扑节点、边和面 | 语法:TopoGeo_AddPoint( toponame Text , point Geometry ) : Text ; TopoGeo_AddPoint( toponame Text , point Geometry , tolerance Double precision ) : Text;官方摘要:RTTOPO;Will attempt to add a Point (or even a MultiPoint ) to an already existing Topology, possibly splitting existing Edges. The optional argument tolerance if omitted will as... |
| 653 | TopoGeo_AddLineString | 拓扑节点、边和面 | 语法:TopoGeo_AddLineString( toponame Text , linestring Geometry ) : Integer ; TopoGeo_AddLineString( toponame Text , linestring Geometry , tolerance Double precision ) : Text;官方摘要:RTTOPO;Will attempt to add a Linestring (or even a MultiLinestring ) to an already existing Topology, possibly splitting existing Edges/Faces. The optional argument tolerance if... |
| 654 | TopoGeo_AddLineStringNoFace | 拓扑节点、边和面 | 语法:TopoGeo_AddLineStringNoFace( toponame Text , linestring Geometry ) : Integer ; TopoGeo_AddLineStringNoFace( toponame Text , linestring Geometry , tolerance Double precision ) : Text;官方摘要:RTTOPO;Very similar to TopoGeo_AddLinestring except for a very critical difference. This function is strongly optimized for maximum speed, and will just update Nodes and Edges p... |
| 655 | TopoGeo_TopoSnap | 拓扑节点、边和面 | 语法:TopoGeo_TopoSnap( toponame Text , input Geometry , iterate Integer ) : Geometry ; TopoGeo_TopoSnap( toponame Text , input Geometry , tolerance_snap Double precision , tolerance_removal Double precision , iterate Integ...;官方摘要:RTTOPO;Will attempt to snap (i.e. renode) the input Geometry (any type) against the Topology identified by toponame . the arguments iterate is intended to be Boolean ( 0 = FALSE... |
| 656 | TopoGeo_SnappedGeoTable | 拓扑节点、边和面 | 语法:TopoGeo_SnappedGeoTable( toponame Text , db-prefix Text , table-name Text , column-name Text , output-table Text , iterate Integer ) : Integer ; TopoGeo_SnappedGeoTable( toponame Text , db-prefix Text , table-name Tex...;官方摘要:RTTOPO;Will attempt to create and populate an output-table by snapping against the Topology identified by toponame all Geometries from an input GeoTable identified by db-prefix ... |
| 657 | TopoGeo_SubdivideLines | 拓扑节点、边和面 | 语法:TopoGeo_SubdivideLines( input Geometry , line_max_points Integer ) : MultiLinestring ; TopoGeo_SubdivideLines( input Geometry , line_max_points Integer , line_max_length Double precision ) : MultiLinestring;官方摘要:RTTOPO;Will attempt to split a Linestring (or even a MultiLinestring ) into a collection of shorter LineStrings fully respecting Topology consistency. if argument line_max_point... |
| 658 | TopoGeo_FromGeoTable | 拓扑节点、边和面 | 语法:TopoGeo_FromGeoTable( toponame Text , db-prefix Text , table-name Text , column-name Text ) : Integer ; TopoGeo_FromGeoTable( toponame Text , db-prefix Text , table-name Text , column-name Text , line_max_points Integ...;官方摘要:RTTOPO;Will attempt to import all Geometries from an input GeoTable identified by db-prefix , table-name and column-name into an existing Topology-Geometry created with CreateTo... |
| 659 | TopoGeo_FromGeoTableNoFace | 拓扑节点、边和面 | 语法:TopoGeoFromGeoTableNoFace( toponame Text , db-prefix Text , table-name Text , column-name Text ) : Integer ; TopoGeo_FromGeoTableNoFace( toponame Text , db-prefix Text , table-name Text , column-name Text , line_max...;官方摘要:RTTOPO;Very similar to TopoGeo_FromGeoTable except for a very critical difference. This function is strongly optimized for maximum speed, and will only update/create Nodes and E... |
| 660 | TopoGeo_FromGeoTableExt | 拓扑节点、边和面 | 语法:TopoGeo_FromGeoTableExt( toponame Text , db-prefix Text , table-name Text , column-name Text , dustbin-table Text , dustbin-view Text ) : Integer ; TopoGeo_FromGeoTableExt( toponame Text , db-prefix Text , table-name ...;官方摘要:RTTOPO;Will attempt to import all Geometries from an input GeoTable identified by db-prefix , table-name and column-name into an already existing Topology-Geometry, in the same ... |
| 661 | TopoGeo_FromGeoTableNoFaceExt | 拓扑节点、边和面 | 语法:TopoGeo_FromGeoTableNoFaceExt( toponame Text , db-prefix Text , table-name Text , column-name Text , dustbin-table Text , dustbin-view Text ) : Integer ; TopoGeo_FromGeoTableNoFaceExt( toponame Text , db-prefix Text ,...;官方摘要:RTTOPO;Very similar to TopoGeo_FromGeoTableExt except for a very critical difference. This function is strongly optimized for maximum speed, and will only update/create Nodes an... |
| 662 | TopoGeo_Polygonize | 拓扑节点、边和面 | 语法:TopoGeo_Polygonize( toponame Text ); TopoGeo_Polygonize( toponame Text , force_rebuild Boolean );官方摘要:RTTOPO;Will remove all existing Faces from a Topology and then rebuild them from scratch. If the Topology already is in a fully consistent state (i.e. all Edges are found to be ... |
| 663 | TopoGeo_RemoveSmallFaces | 拓扑节点、边和面 | 语法:TopoGeo_RemoveSmallFaces( toponame Text , min-circularity Double precision ) : Integer ; TopoGeo_RemoveSmallFaces( toponame Text , min-circularity Double precision , min-area Double precision ) : Integer;官方摘要:RTTOPO;Will remove from the given Topology all Faces presenting both a Circularity index smaller than min-circularity and an area smaller than min-area . for a formal definition... |
| 664 | TopoGeo_RemoveDanglingEdges | 拓扑节点、边和面 | 语法:TopoGeo_RemoveDanglingEdges( toponame Text ) : Integer;官方摘要:RTTOPO;Will remove from the given Topology all dangling Edges.; Will return 1 on full success; an exception will be raised on failure. |
| 665 | TopoGeo_RemoveDanglingNodes | 拓扑节点、边和面 | 语法:TopoGeo_RemoveDanglingNodes( toponame Text ) : Integer;官方摘要:RTTOPO;Will remove from the given Topology all dangling Nodes.; Will return 1 on full success; an exception will be raised on failure. |
| 666 | TopoGeo_NewEdgeHeal | 拓扑节点、边和面 | 语法:TopoGeo_NewEdgeHeal( toponame Text ) : Integer;官方摘要:RTTOPO;Will remove from the given Topology all unnecessary Nodes.; An unnecessary Node is one connected to exactly two Edges whilst both Edges share the same two Faces; it's obv... |
| 667 | TopoGeo_ModEdgeHeal | 拓扑节点、边和面 | 语法:TopoGeo_ModEdgeHeal( toponame Text ) : Integer;官方摘要:RTTOPO;Will remove from the given Topology all unnecessary Nodes.; An unnecessary Node is one connected to exactly two Edges whilst both Edges share the same two Faces; it's obv... |
| 668 | TopoGeo_NewEdgesSplit | 拓扑节点、边和面 | 语法:TopoGeo_NewEdgesSplit( toponame Text , line_max_points Integer ) : Integer ; TopoGeo_NewEdgesSplit( toponame Text , line_max_points Integer , line_max_length Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to split all Edges into a collection of shorter Edges fully respecting Topology consistency.; The interpretation of line_max_points and line_max_lenght argum... |
| 669 | TopoGeo_ModEdgeSplit | 拓扑节点、边和面 | 语法:TopoGeo_ModEdgeSplit( toponame Text , line_max_points Integer ) : Integer ; TopoGeo_ModEdgeSplit( toponame Text , line_max_points Integer , line_max_length Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to split all Edges into a collection of shorter Edges fully respecting Topology consistency.; The interpretation of line_max_points and line_max_lenght argum... |
| 670 | TopoGeo_Clone | 拓扑节点、边和面 | 语法:TopoGeo_Clone( db-prefix Text , toponame Text , new-toponame Text ) : Integer;官方摘要:RTTOPO;Will clone an existing Topology into another; the destionation Topology shall not exist and will be automatically created. db-prefix may be NULL , and in this case the in... |
| 671 | TopoGeo_GetEdgeSeed | 拓扑节点、边和面 | 语法:TopoGeo_GetEdgeSeed( toponame Text , edge-id Integer ) : Geometry;官方摘要:X;RTTOPO;Will return a Point Geometry uniquely identifying an Edge (i.e. spatially intersecting the Edge).; Will return a Point on success; an exception will be raised on failure. |
| 672 | TopoGeo_GetFaceSeed | 拓扑节点、边和面 | 语法:TopoGeo_GetFaceSeed( toponame Text , face-id Integer ) : Geometry;官方摘要:X;RTTOPO;Will return a Point Geometry uniquely identifying a Face (i.e. spatially intersecting the Face).; Will return a Point on success; an exception will be raised on failure. |
| 673 | TopoGeo_SnapPointToSeed | 拓扑节点、边和面 | 语法:TopoGeo_SnapPointToSeed( point Geometry , toponame Text , distance Double ) : Geometry;官方摘要:X;RTTOPO;Will possibly return a new Point precisely snapped to the nearset TopoNode within the given distance ; if no such TopoNode exists NULL will be returned.; An exception w... |
| 674 | TopoGeo_SnapLineToSeed | 拓扑节点、边和面 | 语法:TopoGeo_SnapLineToSeed( line Geometry , toponame Text , distance Double ) : Geometry;官方摘要:X;RTTOPO;Will possibly return a new Linestring precisely snapped to the nearset Edge TopoSeed within the given distance ; if no such TopoSeed exists NULL will be returned.; An e... |
| 675 | TopoGeo_DisambiguateSegmentEdges | 拓扑节点、边和面 | 语法:TopoGeo_DisambiguateSegmentEdges( toponame Text ) : Integer;官方摘要:X;RTTOPO;Ensures that all Edges on a Topology-Geometry will have not less than three vertices. all Edges found already definining three or more vertices will be left untouched a... |
| 676 | TopoGeo_UpdateSeeds | 拓扑节点、边和面 | 语法:TopoGeo_UpdateSeeds( toponame Text ) : Integer ; TopoGeo_UpdateSeeds( toponame Text , incremental-mode Integer ) : Integer;官方摘要:X;RTTOPO;Will update all persistent Edge- and Face-Seeds so to correctly represent the current state of the underlying Topology. if the optional argument incremental-mode is set... |
| 677 | TopoGeo_PolyFacesList | 拓扑节点、边和面 | 语法:TopoGeo_PolyFacesList( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text ) : Integer;官方摘要:RTTOPO;Will attempt to export into an output Table all relationships between the Faces of some Topology-Geometry and Polygons/Multipolygons found within a given Reference-GeoTab... |
| 678 | TopoGeo_LineEdgesList | 拓扑节点、边和面 | 语法:TopoGeo_LineEdgesList( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text ) : Integer;官方摘要:RTTOPO;Will attempt to export into an output Table all relationships between the Edges of some Topology-Geometry and Linestrings/Multilinestrings found within a given Reference-... |
| 679 | TopoGeo_ToGeoTable | 拓扑节点、边和面 | 语法:TopoGeo_ToGeoTable( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text ) : Integer ; TopoGeo_ToGeoTable( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name...;官方摘要:RTTOPO;Will attempt to export into an Output GeoTable all Geometries out from a Topology-Geometry matching (via Seed-based references) a given Reference-GeoTable containing info... |
| 680 | TopoGeo_ToGeoTableGeneralize | 拓扑节点、边和面 | 语法:TopoGeo_ToGeoTableGeneralize( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text , tolerance Double precision ) : Integer ; TopoGeo_ToGeoTableGeneralize( toponame Text , db-pr...;官方摘要:RTTOPO;Exactly the same as TopoGeo_ToGeoTable() except in that all exported geometries will be simplified / generalized still maintaining full topological consistency. tolerance... |
| 681 | TopoGeo_CreateTopoLayer | 拓扑节点、边和面 | 语法:TopoGeo_CreateTopoLayer( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , topolayer-name Text ) : Integer ; TopoGeo_CreateTopoLayer( toponame Text , db-prefix Text , ref-table-name Text , ...;官方摘要:RTTOPO;Will create a fully defined new TopoLayer starting from a reference GeoTable: db-prefix can be NULL , and in this case the reference GeoTable is expected to be located wi... |
| 682 | TopoGeo_InitTopoLayer | 拓扑节点、边和面 | 语法:TopoGeo_InitTopoLayer( toponame Text , db-prefix Text , ref-table-name Text , topolayer-name Text ) : Integer;官方摘要:RTTOPO;Will initialize a partialy defined new TopoLayer starting from a reference plain Table or View: db-prefix can be NULL , and in this case the reference Table or View is ex... |
| 683 | TopoGeo_RemoveTopoLayer | 拓扑节点、边和面 | 语法:TopoGeo_RemoveTopoLayer( toponame Text , topolayer-name Text ) : Integer;官方摘要:RTTOPO;Will completely remove an existing TopoLayer .; Will return 1 on success; an exception will be raised on failure. |
| 684 | TopoGeo_ExportTopoLayer | 拓扑节点、边和面 | 语法:TopoGeo_ExportTopoLayer( toponame Text , topolayer-name Text , out-table Text ) : Integer ; TopoGeo_ExportTopoLayer( toponame Text , topolayer-name Text , out-table Text , with-spatial-index Boolean ) : Integer ; Topo...;官方摘要:RTTOPO;Will create and populate a GeoTable corresponding to a TopoLayer . if the optional boolean argument with-spatial-index is set to TRUE (any other value different from zero... |
| 685 | TopoGeo_InsertFeatureFromTopoLayer | 拓扑节点、边和面 | 语法:TopoGeo_InsertFeatureFrom( toponame Text , topolayer-name Text , out-table Text , fid Integer ) : Integer;官方摘要:RTTOPO;Will inserting a single TopoFeature identified by is fid into a GeoTable corresponding to a TopoLayer . the output GeoTable must exist and is expected to be created by a ... |
9.49 SQL functions supporting Topology-Network
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 686 | GetLastNetworkException | 网络节点、链接和连通性 | 语法:GetLastNetworkException( netname Text ) : Text;官方摘要:RTTOPO;Will return the most recent exception raised by this Topo-Net, or NULL if no exception is currently pending. |
| 687 | InitTopoNet | 网络节点、链接和连通性 | 语法:ST_InitTopoNet( netname Text ) : Integer;官方摘要:X;RTTOPO;This SQL function is explicitly required by ISO 13249-3 , anyway it's simply implemented as an alias-name for CreateNetwork ( netname ) .; Will return 1 on success) or ... |
| 688 | CreateNetwork | 网络节点、链接和连通性 | 语法:CreateNetwork( netname Text ) : Integer ; CreateNetwork( netname Text , spatial Boolean ) : Integer ; CreateNetwork( netname Text , spatial Boolean , srid Integer ) : Integer ; CreateNetwork( netname Text , spatial Bo...;官方摘要:RTTOPO;Will create all DBMS objects (tables, triggers, indices and alike) required in order to store a separate Topo-Net. netname : the individual unique name of this Topo-Net: ... |
| 689 | DropNetwork | 网络节点、链接和连通性 | 语法:DropNetwork( netname Text ) : Integer;官方摘要:RTTOPO;Completely removes a Topo-Net (and all data it contains) from the DBMS: to be invoked very cautiously and only if you are absolutely sure of what you are doing.; Will ret... |
| 690 | AddIsoNetNode | 网络节点、链接和连通性 | 语法:ST_AddIsoNetNode( netname Text , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new isolated NetNode.; Will return the ID of the inserted NetNode on success; an exception will be raised on failure. |
| 691 | MoveIsoNetNode | 网络节点、链接和连通性 | 语法:ST_MoveIsoNetNode( netname Text , node-id Integer , point Geometry ) : Text;官方摘要:X;RTTOPO;Will move an isolated NetNode from a point to another.; Will return a text message on success; an exception will be raised on failure. |
| 692 | RemIsoNetNode | 网络节点、链接和连通性 | 语法:ST_RemIsoNetNode( netname Text , node-id Integer ) : Text;官方摘要:X;RTTOPO;Will remove an isolated NetNode.; Will return a text message on success; an exception will be raised on failure. |
| 693 | AddLink | 网络节点、链接和连通性 | 语法:ST_AddLink( netname Text , startnode-id Integer , endnode-id Integer , linestring Geometry ) : Integer;官方摘要:X;RTTOPO;Will add a new Link connecting two NetNodes.; Will return the ID of the inserted Link on success; an exception will be raised on failure. |
| 694 | ChangeLinkGeom | 网络节点、链接和连通性 | 语法:ST_ChangeLinkGeom( netname Text , link-id Integer , linestring Geometry ) : Text;官方摘要:X;RTTOPO;Will change the geometry of a Link without affecting Topology relationships.; Will return a text message on success; an exception will be raised on failure. |
| 695 | RemoveLink | 网络节点、链接和连通性 | 语法:ST_RemoveLink( netname Text , link-id Integer ) : Text;官方摘要:X;RTTOPO;Will remove a Link.; Will return a text message on success; an exception will be raised on failure. |
| 696 | NewLogLinkSplit | 网络节点、链接和连通性 | 语法:ST_NewLogLinkSplit( netname Text , link-id Integer ) : Integer;官方摘要:X;RTTOPO;Will split a Link (of the Logical type) by creating a new intermediate NetNode. The original Link will be deleted and will be replaced by two new Links.; Will return th... |
| 697 | ModLogLinkSplit | 网络节点、链接和连通性 | 语法:ST_ModLogLingSplit( netname Text , link-id Integer ) : Integer;官方摘要:X;RTTOPO;Will split a Link (of the Logical type) by creating a new intermediate NetNode. The original Link will be modified and a new Link will be inserted.; Will return the ID ... |
| 698 | NewGeoLinkSplit | 网络节点、链接和连通性 | 语法:ST_NewGeoLinkSplit( netame Text , link-id Integer , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will split a Link (of the Spatial type) by creating a new intermediate NetNode. The original Link will be deleted and will be replaced by two new Links.; Will return th... |
| 699 | ModGeoLinkSplit | 网络节点、链接和连通性 | 语法:ST_ModGeoLingSplit( netame Text , link-id Integer , point Geometry ) : Integer;官方摘要:X;RTTOPO;Will split a Link (of the Spatial type) by creating a new intermediate NetNode. The original Link will be modified and a new Link will be inserted.; Will return the ID ... |
| 700 | NewLinkHeal | 网络节点、链接和连通性 | 语法:ST_NewLinkHeal( netname Text , link1-id Integer , link2-id Integer ) : Integer;官方摘要:X;RTTOPO;Will heal two Links by deleting the NetNode connecting them. Both the original Links will be deleted and will be replaced by a new Link preserving the same orientation ... |
| 701 | ModLinkHeal | 网络节点、链接和连通性 | 语法:ST_ModLinkHeal( netname Text , link1-id Integer , link2-id Integer ) : Integer;官方摘要:X;RTTOPO;Will heal two Links by deleting the NetNode connecting them. The first Link provided will be modified and the second deleted.; Will return the ID of the removed NetNode... |
| 702 | LogiNetFromTGeo | 网络节点、链接和连通性 | 语法:ST_LogiNetFromTGeo( netname Text , toponame Text ) : Integer;官方摘要:X;RTTOPO;Will create a Logical Topology-Network from an existing Topology-Geometry .; The destination TopoNet is expected to exist and to be completely empty.; Will return 1 on ... |
| 703 | SpatNetFromTGeo | 网络节点、链接和连通性 | 语法:ST_SpatNetFromTGeo( netname Text , toponame Text ) : Integer;官方摘要:X;RTTOPO;Will create a Spatial Topology-Network from an existing Topology-Geometry .; The destination TopoNet is expected to exist and to be completely empty.; Will return 1 on ... |
| 704 | SpatNetFromGeom | 网络节点、链接和连通性 | 语法:ST_SpatNetFromGeom( netname Text , geometry BLOB );官方摘要:X;RTTOPO;Will populate a full Network by importing a collection of arbitrary Geometries.; The destination Network must already exists and must be empty; both SRID and dimensions... |
| 705 | ValidLogicalNet | 网络节点、链接和连通性 | 语法:ST_ValidLogicalNet( netname Text ) : DB-table;官方摘要:X;RTTOPO;Will create a DB-Table containing a validation report for the given TopoNet of the Logical type: if the output table is empty and no exception was raised the Network is... |
| 706 | ValidSpatialNet | 网络节点、链接和连通性 | 语法:ST_ValidSpatialNet( netname Text ) : DB-table;官方摘要:X;RTTOPO;Will create a DB-Table containing a validation report for the given TopoNet of the Spatial type: if the output table is empty and no exception was raised the Network is... |
| 707 | GetNetNodeByPoint | 网络节点、链接和连通性 | 语法:GetNetNodeByPoint( netname Text , point Geometry ) : Integer ; GetNetNodeByPoint( netname Text , point Geometry , tolerance Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to find the ID of a NetNode located at Point. The optional argument tolerance if omitted will imply an exact coincidence ( 0.0 by default). ; Will return the... |
| 708 | GetLinkByPoint | 网络节点、链接和连通性 | 语法:GetLinkByPoint( netname Text , point Geometry ) : Integer ; GetLinkByPoint( netname Text , point Geometry , tolerance Double precision ) : Integer;官方摘要:RTTOPO;Will attempt to find the ID of a Link intersecting the given Point. The optional argument tolerance if omitted will imply an exact coincidence ( 0.0 by default). ; Will r... |
| 709 | TopoNet_FromGeoTable | 网络节点、链接和连通性 | 语法:TopoNet_FromGeoTable( toponame Text , db-prefix Text , table-name Text , column-name Text ) : Integer;官方摘要:RTTOPO;Will attempt to import all Geometries from an input GeoTable identified by db-prefix , table-name and column-name into an already existing Topology-Network. db-prefix can... |
| 710 | TopoNet_Clone | 网络节点、链接和连通性 | 语法:TopoNet_Clone( netname Text , new-netname Text ) : Integer;官方摘要:RTTOPO;Will clone an existing Network into another; the destionation Network shall not exist and will be automatically created.; Will return 1 on success; an exception will be r... |
| 711 | TopoNet_GetLinkSeed | 网络节点、链接和连通性 | 语法:TopoNet_GetLinkSeed( netname Text , link-id Integer ) : Geometry;官方摘要:RTTOPO;Will return a Point Geometry uniquely identifying a Link (i.e. spatially intersecting the Link).; Will return a Point on success; an exception will be raised on failure. |
| 712 | TopoNet_DisambiguateSegmentLinks | 网络节点、链接和连通性 | 语法:TopoNet_DisambiguateSegmentLinks( toponame Text ) : Integer;官方摘要:X;RTTOPO;Ensures that all Links on a Topology-Network will have not less than three vertices. all Links found already definining three or more vertices will be left untouched as... |
| 713 | TopoNet_UpdateSeeds | 网络节点、链接和连通性 | 语法:TopoNet_UpdateSeeds( netname Text ) : Integer ; TopoNet_UpdateSeeds( netname Text , incremental-mode Integer ) : Integer;官方摘要:RTTOPOM;Will update all persistent Link-Seeds so to correctly represent the current state of the underlying Network. if the optional argument incremental-mode is set to TRUE an ... |
| 714 | TopoNet_LineLinksList | 网络节点、链接和连通性 | 语法:TopoNet_LineLinksList( netname Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text ) : Integer;官方摘要:RTTOPO;Will attempt to export into an output Table all relationships between the Links of some Topology-Network and Linestrings/Multilinestrings found within a given Reference-G... |
| 715 | TopoNet_ToGeoTable | 网络节点、链接和连通性 | 语法:TopoNet_ToGeoTable( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text ) : Integer ; TopoNet_ToGeoTable( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name...;官方摘要:RTTOPO;Will attempt to export into an Output GeoTable all Geometries out from a Topology-Network matching (via Seed-based references) a given Reference-GeoTable containing infor... |
| 716 | TopoNet_ToGeoTableGeneralize | 网络节点、链接和连通性 | 语法:TopoNet_ToGeoTableGeneralize( toponame Text , db-prefix Text , ref-table-name Text , ref-column-name Text , out-table Text , tolerance Double precision ) : Integer ; TopoNet_ToGeoTableGeneralize( toponame Text , db-pr...;官方摘要:RTTOPO;Exactly the same as TopoNet_ToGeoTable() except in that all exported geometries will be simplified / generalized still maintaining full topological consistency. tolerance... |
9.50 SQL functions supporting WMS datasources
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 717 | WMS_CreateTables | WMS 数据源和请求配置 | 语法:WMS_CreateTables() : Integer;官方摘要:Creates all DB Tables required for permanently egistering WMS datasources and their configurations.; Will return 1 on success; 0 on failure. |
| 718 | WMS_RegisterGetCapabilities | WMS 数据源和请求配置 | 语法:WMS_RegisterGetCapabilities( url Text ) : Integer ; WMS_RegisterGetCapabilities( url Text , title Text , abstract Text ) : Integer;官方摘要:Registers a WMS server.; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 719 | WMS_UnRegisterGetCapabilities | WMS 数据源和请求配置 | 语法:WMS_UnRegisterGetCapabilities( url Text ) : Integer;官方摘要:Unregisters a WMS server (and all related children).; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 720 | WMS_SetGetCapabilitiesInfos | WMS 数据源和请求配置 | 语法:WMS_SetGetCapabilitiesInfos( url Text , title Text , abstract Text );官方摘要:Sets or updates the Title and Abstract for the WMS server identified by url .; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 721 | WMS_RegisterGetMap | WMS 数据源和请求配置 | 语法:WMS_RegisterGetMap( getcapabilitites_url Text , getmap_url Text , layer_name Text , version Text , ref_sys Text , image_format Text , style Text , is_transparent Boolean , flip_axes Boolean ) : Integer ; WMS_RegisterG...;官方摘要:Registers a WMS layer. getcapabilities_url : URL referencing the parent WMS GetCapabilities request (must be already registered). getmap_url : base URL corresponding to the WMS ... |
| 722 | WMS_UnRegisterGetMap | WMS 数据源和请求配置 | 语法:WMS_UnRegisterGetMap( getmap_url Text , layer_name Text ) : Integer;官方摘要:Unregisters a WMS Layer (and all related children).; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 723 | WMS_SetGetMapInfos | WMS 数据源和请求配置 | 语法:WMS_SetGetMapInfos( getmap_url Text , layer_name Text , title Text , abstract Text ) : Integer;官方摘要:Sets or updates the Title and Abstract for the WMS Layer identified by getmap_url and layer_name .; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 724 | WMS_SetGetMapCopyright | WMS 数据源和请求配置 | 语法:WMS_SetGetMapCopyright( getmap_url Text , layer_name String , copyright String ) : Integer ; WMS_SetGetMapCopyright( getmap_url Text , layer_name String , copyright String , license String ): Integer;官方摘要:Updates Copyright and License infos associated to a WMS Layer . getmap_url and layer_name must identify an existing WMS Layer. copyright identifies the Copyright holder; if NULL... |
| 725 | WMS_SetGetMapOptions | WMS 数据源和请求配置 | 语法:WMS_SetGetMapOptions( getmap_url Text , layer_name Text , transparent Boolean , flip_axes Boolean ); WMS_SetGetMapOptions( getmap_url Text , layer_name Text , is_tiled Boolean , cached Boolean , tile_width Integer , t...;官方摘要:Sets or updates configurable options for the WMS Layer identified by getmap_url and layer_name .; Please check WMS_RegisterGetMap for more informations about supported options.;... |
| 726 | WMS_RegisterSetting | WMS 数据源和请求配置 | 语法:WMS_RegisterSetting( getmap_url Text , layer_name Text , key Text , value Text ) : Integer ; WMS_RegisterSetting( getmap_url Text , layer_name Text , key Text , value Text , is_default Boolean ) : Integer;官方摘要:Registers an alternative setting for the WMS Layer identified by getmap_url and layer_name . key : identifies a specific multi-value setting, and should be either version or for... |
| 727 | WMS_RegisterStyle | WMS 数据源和请求配置 | 语法:WMS_RegisterStyle( getmap_url Text , layer_name Text , style_name Text , style_title Text , style_abstract Text ) : Integer ; WMS_RegisterStyle( getmap_url Text , layer_name Text , style_name Text , style_title Text ,...;官方摘要:Registers an alternative style available for the WMS Layer identified by getmap_url and layer_name . style_name : Name of the supported Style. style_title : Title of the support... |
| 728 | WMS_UnRegisterSetting | WMS 数据源和请求配置 | 语法:WMS_UnRegisterSetting( getmap_url Text , layer_name Text , key Text , value Text ) : Integer;官方摘要:Unregisters an alternative setting from the corresponding WMS Layer.; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 729 | WMS_DefaultSetting | WMS 数据源和请求配置 | 语法:WMS_DefaultSetting( getmap_url Text , layer_name Text , key Text , value Text ) : Integer;官方摘要:Makes an alternative setting to become the standard setting for the corresponding WMS Layer.; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 730 | WMS_RegisterRefSys | WMS 数据源和请求配置 | 语法:WMS_RegisterRefSys( getmap_url Text , layer_name Text , ref_sys Text , minx Double , miny Double , maxx Double , maxy Double ) : Integer ; WMS_RegisterRefSys( getmap_url Text , layer_name Text , ref_sys Text , minx Do...;官方摘要:Registers an alternative Reference System for the WMS Layer identified by getmap_url and layer_name ref_sys : name of Reference System (e.g. 'EPSG:4326' or 'EPSG:32632' ). minx ... |
| 731 | WMS_UnRegisterRefSys | WMS 数据源和请求配置 | 语法:WMS_UnRegisterRefSys( getmap_url Text , layer_name Text , ref_sys Text ) : Integer;官方摘要:Unregisters an alternative Reference System from the corresponding WMS Layer.; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 732 | WMS_DefaultRefSys | WMS 数据源和请求配置 | 语法:WMS_DefaultRefSys( getmap_url Text , layer_name Text , ref_sys Text ) : Integer;官方摘要:Makes an alternative SRS to become the standard Reference System for the corresponding WMS Layer.; Will return 1 on success; 0 on failure; -1 on invalid arguments. |
| 733 | WMS_GetMapRequestURL | WMS 数据源和请求配置 | 语法:WMS_GetMapRequestURL( getmap_url Text , layer_name Text , width Integer , height Integer , minx Double , miny Double , maxx Double , maxy Double ) : Text;官方摘要:Creates a WMS GetMap request URL for the WMS Layer identified by getmap_url and layer_name by applying the currently set options. width and height : horizontal and vertical dime... |
| 734 | WMS_GetFeatureInfoRequestURL | WMS 数据源和请求配置 | 语法:WMS_GetFeatureInfoRequestURL( getmap_url Text , layer_name Text , width Integer , height Integer , x Integer , y Integer , minx Double , miny Double , maxx Double , maxy Double ) : Text ; WMS_GetFeatureInfoRequestURL(...;官方摘要:Creates a WMS GetFeatureInfo request URL for the WMS Layer identified by getmap_url and layer_name by applying the currently set options. width and height : horizontal and verti... |
9.51 SQL functions supporting Data Licenses
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 735 | RegisterDataLicense | 数据许可证 | 语法:RegisterDataLicense( license_name Text ) : Integer ; RegisterDataLicense( license_name Text , url Text ) : Integer;官方摘要:Registers a Data License. license_name is expected to be a text string uniquely identifying a license/version.; Note : the following licenses are always self-defined when creati... |
| 736 | UnRegisterDataLicense | 数据许可证 | 语法:UnRegisterDataLicense( license_name Text ) : Integer;官方摘要:Unregisters a Data License. license_name is expected to match an already registered license/version. ; Will return 1 on success; 0 on failure; -1 on invalid argument. |
| 737 | RenameDataLicense | 数据许可证 | 语法:RenameDataLicense( old_name Text , new_name Text ) : Integer;官方摘要:Renames a Data License. old_name is expected to match an already registered license/version. new_name must not match any already registered license/version so to respect the uni... |
| 738 | SetDataLicenseUrl | 数据许可证 | 语法:SetDataLicenseURL( license_name Text , url Text ) : Integer;官方摘要:Sets or updates the URL corresponding to a Data License. license_name is expected to match an already registered license/version. url is expected to be an URL pointing to the li... |
9.52 miscellaneous advanced SQL functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 739 | CloneTable | 导入导出和数据库工具 | 语法:CloneTable( db-prefix Text , input_table Text , output_table Text , transaction Integer ) : Integer ; CloneTable( db-prefix Text , input_table Text , output_table Text , transaction Integer , option_1 Text [ , ... , o...;官方摘要:Will clone (i.e. create+copy) an origin table into a destination table: the origin could be eventually located into some attached DB, but the destination is always assumed to be... |
| 740 | CreateClonedTable | 导入导出和数据库工具 | 语法:CreateClonedTable( db-prefix Text , input_table Text , output_table Text , transaction Integer ) : Integer ; CreateClonedTable( db-prefix Text , input_table Text , output_table Text , transaction Integer , option_1 Te...;官方摘要:A strict derivative of CloneTable() accepting the same arguments with identical meaning.; The only difference is in that this second variant will only create the output Table de... |
| 741 | CheckDuplicateRows | 导入导出和数据库工具 | 语法:CheckDuplicateRows( table Text ) : Integer;官方摘要:Will check if the given table does contain duplicate rows, i.e. rows presenting identical values for all columns (ignoring any Primary Key column). ; Will return the total numbe... |
| 742 | RemoveDuplicateRows | 导入导出和数据库工具 | 语法:RemoveDuplicateRows( table Text ) : Integer ; RemoveDuplicateRows( table Text , transaction Boolean ) : Integer;官方摘要:Will remove all duplicate rows from the given table preserving only a single occurrence.; The optional argument transaction determines if an internal SQL Transaction should be a... |
| 743 | ElementaryGeometries | 导入导出和数据库工具 | 语法:ElementaryGeometries( in_table Text , geom_column Text , out_table Text , out_pk Text , out_multi_id Text ) : Integer ; ElementaryGeometries( in_table Text , geom_column Text , out_table Text , out_pk Text , out_multi...;官方摘要:Will create a new out_table directly corresponding to in_table . The output table will be arranged in such a way that each row will always contain an elementary Geometry; so eac... |
| 744 | DropGeoTable / ;; Deprecated !!! / Please, use DropTable() | 导入导出和数据库工具 | 语法:DropGeoTable( table Text ) : Integer ; DropGeoTable( table Text , transaction Boolean ) : Integer ; DropGeoTable( db-prefix Text , table Text ) : Integer ; DropGeoTable( db-prefix Text , table Text , transaction Boole...;官方摘要:Will completely remove a Geometry Table (or Spatial View) this including any eventual SpatialIndex, metadata and statistics definitions an alike.; The optional argument transact... |
| 745 | DropTable | 导入导出和数据库工具 | 语法:DropTable( db-prefix Text , table Text ) : Integer ; DropTable( db-prefix Text , table Text , permissive Boolean ) : Integer;官方摘要:Will safely remove a Geometry Table (or Spatial View), including any SpatialIndex, triggers, metadata, statistics tables.; Will also work on ordinary (non-Spatial) Tables and Vi... |
| 746 | RenameTable | 导入导出和数据库工具 | 语法:RenameTable( db-prefix Text , old_name Text , new_name Text ) : Integer ; RenameTable( db-prefix Text , old_name Text , new_name Text , permissive Boolean ) : Integer;官方摘要:Will safely rename a Geometry Table, including any SpatialIndex, triggers, metadata, statistics tables.; Will also work on ordinary (non-Spatial) Tables, RasterLite2 raster_cove... |
| 747 | RenameColumn | 导入导出和数据库工具 | 语法:RenameColumn( db-prefix Text , table Text , old_colname Text , new_colname Text ) : Integer ; RenameColumn( db-prefix Text , table Text , old_colname Text , new_colname Text , permissive Boolean ) : Integer;官方摘要:Will safely rename a Column belonging to a Geometry Table, including any SpatialIndex, triggers, metadata, statistics tables.; Will also work on Columns of ordinary (non-Spatial... |
| 748 | ImportSHP | 导入导出和数据库工具 | 语法:ImportSHP( filename Text , table Text , charset Text ) : Integer ; ImportSHP( filename Text , table Text , charset Text [ , srid Integer [ , geom_column Text [ , pk_column Text [ , geometry_type Text [ , coerce2D Inte...;官方摘要:Will import an external Shapfile into an internal Table: Mandatory arguments: filename absolute or relative path leading to the Shapefile (omitting any .shp , .shx or .dbf suffi... |
| 749 | ImportZipSHP | 导入导出和数据库工具 | 语法:ImportZipSHP( zip_path Text , basename Text , table Text , charset Text ) : Integer ; ImportZipSHP( zip_path Text , basename Text , table Text , charset Text [ , srid Integer [ , geom_column Text [ , pk_column Text [ ...;官方摘要:Will import an external Shapfile from a Zipfile into an internal Table. This function is almost the same as ImportSHP() , except in that the Shapefile is expected to be stored w... |
| 750 | Zipfile_NumSHP | 导入导出和数据库工具 | 语法:Zipfile_NumSHP( zip_path Text ) : Integer;官方摘要:return the number of Shapefiles contained within the Zipfile identified by zip_path ; NULL on invalid argument or if the Zipfile does not exist or is corrupted. |
| 751 | Zipfile_ShpN | 导入导出和数据库工具 | 语法:Zipfile_ShpN( zip_path Text , idx Integer ) : Text;官方摘要:return the basename of the nth (1-based) Shapefile contained within the Zipfile identified by zip_path ; NULL on invalid arguments or if the Zipfile does not exist or is corrupted. |
| 752 | ExportSHP | 导入导出和数据库工具 | 语法:ExportSHP( table Text , geom_column Text , filename Text , charset Text ) : Integer ; ExportSHP( table Text , geom_column Text , filename Text , charset Text , geom_type Text \[ , colname_case Text ] ) : Integer;官方摘要:Will export an internal Table as an external Shapefile: table name of the table to be exported. geom_column name of the Geometry column. filename absolute or relative path leadi... |
| 753 | ImportDBF | 导入导出和数据库工具 | 语法:ImportDBF( filename Text , table Text , charset Text ) : Integer ; ImportDBF( filename Text , table Text , charset Text , pk_column Text \[ , text_dates Integer \[ , colname_case Text ] ] ) : Integer;官方摘要:Will import an external DBF file into an internal Table: Mandatory arguments: filename absolute or relative path leading to the DBF (including the .dbf suffix). table name of th... |
| 754 | ImportZipDBF | 导入导出和数据库工具 | 语法:ImportZipDBF( zip_path Text , filename Text , table Text , charset Text ) : Integer ; ImportZipDBF( zip_path Text , filename Text , table Text , charset Text [ , pk_column Text [ , text_dates Integer [ , colname_case ...;官方摘要:Will import an external DBF file from a Zipfile into an internal Table. This function is almost the same as ImportDBF() , except in that the DBF file is expected to be stored wi... |
| 755 | Zipfile_NumDBF | 导入导出和数据库工具 | 语法:Zipfile_NumDBF( zip_path Text ) : Integer;官方摘要:return the number of DBF files contained within the Zipfile identified by zip_path ; NULL on invalid argument or if the Zipfile does not exist or is corrupted. |
| 756 | Zipfile_DbfN | 导入导出和数据库工具 | 语法:Zipfile_DbfN( zip_path Text , idx Integer ) : Text;官方摘要:return the filename of the nth (1-based) DBF file contained within the Zipfile identified by zip_path ; NULL on invalid arguments or if the Zipfile does not exist or is corrupted. |
| 757 | ExportDBF | 导入导出和数据库工具 | 语法:ExportDBF( table Text , filename Text , charset Text , colname_case Text ) : Integer;官方摘要:Will export an internal Table as an external DBF file: table name of the table to be exported. filename absolute or relative path leading to the DBF (including the .dbf suffix)... |
| 758 | ExportKML | 导入导出和数据库工具 | 语法:ExportKML( table Text , geo_column Text , filename Text ) : Integer ; ExportKML( table Text , geo_column Text , filename Text , precision Integer \[ , name_column Text \[ , description Text ] ] ) : Integer;官方摘要:Will export an internal Table as an external KML file: Mandatory aguments: table name of the table to be exported. geom_column name of the Geometry column. filename absolute or ... |
| 759 | ExportGeoJSON / ;; Obsolete and deprecated !!! / Please, use ExportGeoJSON2() | 导入导出和数据库工具 | 语法:ExportGeoJSON( table Text , geo_column Text , filename Text ) : Integer ; ExportGeoJSON( table Text , geo_column Text , filename Text , format Text \[ , precision Integer ] ) : Integer;官方摘要:Will export an internal Table as an external GeoJSON file: Mandatory aguments: table name of the table to be exported. geom_column name of the Geometry column. filename absolute... |
| 760 | ExportGeoJSON2 | 导入导出和数据库工具 | 语法:ExportGeoJSON2( table Text , geo_column Text , filename Text ) : Integer ; ExportGeoJSON2( table Text , geo_column Text , filename Text [ , precision Integer [ , lon_lat Boolen [ , M_coords Boolean [ , indented Boolea...;官方摘要:Will export an internal Table as an external GeoJSON file that is conformant to the RFC 7946 specifications: Mandatory aguments: table name of the table to be exported. geom_col... |
| 761 | ImportGeoJSON | 导入导出和数据库工具 | 语法:ImportGeoJSON( filename Text , table Text ) : Integer ; ImportGeoJSON( filename Text , table Text , geo_column Text \[ , spatial_index Boolean \[ , srid Interger \[ , colname_case Text ]]] ) : Integer;官方摘要:Will create a Spatial Table by importing an external GeoJSON file conformant to the RFC 7946 specifications: Mandatory aguments: table name of the table to be created. filename ... |
| 762 | ImportXLS | 导入导出和数据库工具 | 语法:ImportXLS( filename Text , table Text ) : Integer ; ImportXLS( filename Text , table Text , worksheet_index Integer \[ , first_line_titles Integer ] ) : Integer;官方摘要:Will import an external spreadsheet file ( Microsoft Excel .xls or .xlsx formats or Libre/OpenOffice Calc .ods format ) into an internal Table: Mandatory arguments: filename abs... |
| 763 | ImportWFS | 导入导出和数据库工具 | 语法:ImportWFS( filename_or_url Text , layer_name Text , table Text ) : Integer ; ImportWFS( filename_or_url Text , layer_name Text , table Text [ , pk_column Text [ , swap_axes Integer [ , page_size Integer [ , spatial_in...;官方摘要:Will import data from a WFS datasource: Mandatory arguments: filename_or_url absolute or relative path leading to the WFS file.; Alternatively an URL corresponding to a WFS serv... |
| 764 | ImportDXF | 导入导出和数据库工具 | 语法:ImportDXF( filename String ) : Integer ; ImportDXF( filename String , srid Integer , append Integer , dimensions Text , mode Text , special_rings Text , table_prefix Text , layer_name Text ) : Integer;官方摘要:Will import an external DXF file. filename absolute or relative path leading to the DXF file. srid EPSG SRID value; -1 by default. append boolean flag: enabling or not append mo... |
| 765 | ImportDXFfromDir | 导入导出和数据库工具 | 语法:ImportDXFfromDir( dir_path String ) : Integer ; ImportDXFfromDir( dir_path String , srid Integer , append Integer , dimensions Text , mode Text , special_rings Text , table_prefix Text , layer_name Text ) : Integer;官方摘要:Will import all DXF files found within a given Directory. dir_path absolute or relative path leading to a directory containing all the *.dxf files to be imported. srid EPSG SRID... |
| 766 | ExportDXF | 导入导出和数据库工具 | 语法:ExportDXF( outdir String , filename String , sql_query String , layer_col_name String , geom_col_name String , label_col_name String , text_height_col_name String , text_rotation_col_name String , geom_filter Geometr...;官方摘要:Will export a whole DXF file. The output file path is controlled by out_dir and filename . sql_query is a complete SQL Statement returning the dataset to be exported. layer_col... |
| 767 | ST_Cutter | 导入导出和数据库工具 | 语法:ST_Cutter( input-db-prefix String , input-table String , input-geometry String , blade-db-prefix String , blade-table String , blade-geom String , output-table String [ , transaction Boolean [ , ram-temp-storage Boole...;官方摘要:Will precisely cut in a topological consistent way a whole Input dataset using a Blade dataset (i.e. an arbitrary polygonal dataset).; All cut fragments will be stored into a fu... |
| 768 | GetCutterMessage | 导入导出和数据库工具 | 语法:GetCutterMessage( void ) : String;官方摘要:Will return the most recent diagnostic message emitted by ST_Cutter() .; NULL will be returned if no such message currently exists. |
| 769 | GetVirtualTableExtent | 导入导出和数据库工具 | 语法:GetVirtualTableExtent( virtual_table_name String ) : Geometry;官方摘要:virtual_table_name is expected to identify some Table of the VirtualShape or VirtualGeoJSON type.; An Envelope Geometry will be returned corresponding to the Full Extent ; NULL ... |
| 770 | CreateRouting | 导入导出和数据库工具 | 语法:CreateRouting( routingdata_table String , virtual_routing_table String , input_table String , from_column String , to_column String , geom_column String , cost_column String ) : Boolean ; CreateRouting( routing_data...;官方摘要:Will attempt to create a VirtualRouting Table (and the corresponding Routing Binary Data Table ) starting from a topologically correct Road Network .; routing_data_table : name ... |
| 771 | CreateRoutingNodes | 导入导出和数据库工具 | 语法:CreateRoutingNodes( db_prefix String , spatial_table String , geom_column String , node_from String , node_to String ) : Boolean;官方摘要:Will attempt to add both node_from and nodes_to columns to the Spatial Table identified by db_prefix , spatial_table and geom_column . These two columns will be populated by ins... |
| 772 | CreateRouting_GetLastError | 导入导出和数据库工具 | 语法:CreateRouting_GetLastError( void ) : String;官方摘要:Will return the most recent error message emitted by CreateRouting() or CreateRoutingNodes() .; NULL will be returned if no such error message currently exists. |
| 773 | IsLowASCII | 导入导出和数据库工具 | 语法:IsLowASCII( text_string String ) : Integer;官方摘要:Inspects an UTF-8 encoded text_string testing if it only contains ASCII 7-bit characters.; The return type is Integer, with a return value of 1 for TRUE, 0 for FALSE, and -1 for... |
| 774 | GetDbObjectScope | 导入导出和数据库工具 | 语法:GetDbObjectScope( db_prefix String , db_object_name String ) : String;官方摘要:Will return a text string explaining the intended scope of any DB object ( Table , View , Index or Trigger ), distinguishing between system ( internal/private objects required b... |
| 775 | Pause | 导入导出和数据库工具 | 语法:Pause( void ) : NULL;官方摘要:Will suspend the execution of the current process. (mainly intended for debugging purposes).; Note : Pause() will effectively work only if EnablePause() has been explicitly call... |
| 776 | IsPauseEnabled | 导入导出和数据库工具 | 语法:IsPauseEnabled( void ) : Boolean;官方摘要:Will test if Pause() is currently enabled ( TRUE ) or not ( FALSE ). |
| 777 | EnablePause | 导入导出和数据库工具 | 语法:EnablePause( void ) : NULL;官方摘要:Will enable all subsequent calls to Pause() to be effective.; Note : by default Pause() is always kept disabled for each connection, so you necessarily have to call EnablePause(... |
| 778 | DisablePause | 导入导出和数据库工具 | 语法:DisablePause( void ) : NULL;官方摘要:Will make all subsequent calls to Pause() to be effectless no-ops . |
9.53 SQL Procedures, Stored Procedures and Stored Variables related SQL functions
| 序号 | 函数名 | 函数功能 | 详细说明 |
|---|---|---|---|
| 779 | SqlProc_GetLastError | SQL Procedure、Stored Procedure 和 Stored Variable | 语法:SqlProc_GetLastError( void ) : String;官方摘要:Will return the most recent error message returned by SQL Procedures and friends (if any).; NULL will be returned if there is no pending SQL Procedures error. |
| 780 | SqlProc_SetLogfile | SQL Procedure、Stored Procedure 和 Stored Variable | 语法:SqlProc_SetLogfile( filepath String ) : Integer ; SqlProc_SetLogfile( filepath String , append Boolean ) : Integer;官方摘要:Will activate a SQL Logfile supporting all following calls to SqlProc_Execute() , SqlProc_ExecuteLoop() , StoredProc_Execute() and StoredProc_ExecuteLoop() . The filepath argume... |
| 781 | SqlProc_GetLogfile | SQL Procedure、Stored Procedure 和 Stored Variable | 语法:SqlProc_GetLogf |