Skip to main content
Function to convert closed linestring to polygon including holes. If holes are provided, they should be fully contained within the shell. Holes outside the shell will produce an invalid polygon (matching PostGIS behavior). Use ST_IsValid to check the result. ST_MakePolygon

Signatures

Parameters

Geometry
required
The input geometry.
ARRAY[Geometry]
required
The holes value.

Return type

The resulting geometry.

Example