Skip to main content
Compute the straight skeleton of an areal geometry. The straight skeleton is a method of representing a polygon by a topological skeleton formed by a continuous shrinking process where each edge moves inward in parallel at a uniform speed. SQL reference: ST_StraightSkeleton

Signature

Parameters

ColumnOrName
required
Polygon or MultiPolygon geometry column to compute the straight skeleton for.
Optional[Union[ColumnOrName, int]]
default:"None"
Optional maximum number of vertices to keep in the input geometry before computing. If the geometry has more vertices, it will be simplified. This improves performance for complex geometries.

Returns

Column
MultiLineString representing the straight skeleton as a geometry column.