MakeTopologyPrecise — 将拓扑顶点对齐到精度网格。
void MakeTopologyPrecise(name toponame, geometry bbox, float8 gridSize);
将拓扑中的所有顶点对齐到拓扑精度网格,或对齐到由 gridSize 参数指定大小的网格,可选地将操作限制在与 bbox 参数指定区域相交的对象范围内。
Using a gridSize larger than the smallest edge extent raises an exception rather than collapsing the edge into an empty geometry. This safeguards adjacent topological relationships by preventing precision snapping from removing primitives altogether.
|
|
|
对齐操作可能导致拓扑变得无效,因此建议使用 ValidateTopology 检查操作结果。 |
可用性:3.6.0
SELECT topology.MakeTopologyPrecise(
'city_data',
gridSize =
> 2
);
maketopologyprecise
---------------------
(1 row)