makepolygon - Linestring exterior XYZ
:memory: #use in-memory database
SELECT ST_AsText(MakePolygon(GeomFromText('LINESTRINGZ(1 1 10, 1 2 11, 2 2 12, 2 1 11, 1 1 10)', 4326)));
1 # rows (not including the header row)
1 # columns
ST_AsText(MakePolygon(GeomFromText('LINESTRINGZ(1 1 10, 1 2 11, 2 2 12, 2 1 11, 1 1 10)', 4326)))
POLYGON Z((1 1 10, 1 2 11, 2 2 12, 2 1 11, 1 1 10))