名称

TopoElement — 将拓扑几何转换为拓扑元素。

概要

topoelement TopoElement(topogeometry topo);

描述

TopoGeometry 转换为 TopoElement

可用性:3.4.0

示例

这是一个完整的自包含工作流程

-- do this if you don't have a topology setup already
-- Creates topology not allowing any tolerance
SELECT TopoElement(topo)
FROM neighborhoods;
-- using as cast
SELECT topology.TopoElementArray_Agg(topo::topoelement)
FROM neighborhoods
GROUP BY city;

另请参阅

TopoElementArray_AggTopoGeometryTopoElement