ST_ApproximateMedialAxis — Computa o eixo mediano aproximado de uma geometria territorial.
geometry ST_ApproximateMedialAxis(
geometry geom)
;
Retorna um eixo mediano aproximado para a entrada territorial baseada do seu esqueleto reto. Usa uma API específica do SFCGAL quando construída contra uma versão capaz (1.2.0+). Senão a função é somente um wrapper em volta do ST_StraightSkeleton (caso menor).
Disponibilidade: 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 ))'));
![]() Um polígono e seu eixo mediano aproximado |