1
makepolygon - Linestring exterior XYZM
2
:memory: #use in-memory database
3
SELECT ST_AsText(MakePolygon(GeomFromText('LINESTRINGZM(1 1 10 5, 1 2 11 6, 2 2 12 7, 2 1 11 8, 1 1 10 5)', 4326)));
4
1 # rows (not including the header row)
6
ST_AsText(MakePolygon(GeomFromText('LINESTRINGZM(1 1 10 5, 1 2 11 6, 2 2 12 7, 2 1 11 8, 1 1 10 5)', 4326)))
7
POLYGON ZM((1 1 10 5, 1 2 11 6, 2 2 12 7, 2 1 11 8, 1 1 10 5))