PostGIS

ST_ApproximateMedialAxis

Prev

7.21. SFCGAL Functions

Next

Name

ST_ApproximateMedialAxis — Compute the approximate medial axis of an areal geometry.

Synopsis

geometry +`*`+ST_ApproximateMedialAxis*(`geometry `geom`)`;

Description

Return an approximate medial axis for the areal input based on its straight skeleton. Uses an SFCGAL specific API when built against a capable version (1.2.0+). Otherwise the function is just a wrapper around ST_StraightSkeleton (slower case).

Availability: 2.2.0

check This method needs SFCGAL backend.

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

check This function supports Polyhedral surfaces.

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

Examples

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_approximatemedialaxis01

A polygon and its approximate medial axis

See Also

Prev

Up

Next

ST_AlphaShape

Home

ST_ConstrainedDelaunayTriangles