Name

ST_ApproximateMedialAxis — 计算面状几何图形的近似中轴。

Synopsis

geometry ST_ApproximateMedialAxis(geometry geom);

描述

基于其直骨架返回区域输入的近似中轴。在针对功能强大的版本(1.2.0+)构建时,使用SFCGAL特定的API。否则,该函数只是ST_StraightSkype的包装器(较慢的情况)。

可用性:2.2.0

This method needs SFCGAL backend.

This function supports 3d and will not drop the z-index.

This function supports Polyhedral surfaces.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

示例

SELECT ST_ApproximateMedialAxis(ST_GeomFromText('POLYGON (( 190 190, 10 190, 10 10, 190 10, 190 20, 160 30, 60 30, 60 130, 190 140, 190 190 ))'));

一个多边形及其近似中轴

另请参阅

ST_StraightSkeleton