ST_Force2D (A: Geometry)
SELECT ST_Force2D(ST_GeomFromText('POLYGON((0 0 2,0 5 2,5 0 2,0 0 2),(1 1 2,3 1 2,1 3 2,1 1 2))'))
POLYGON((0 0,0 5,5 0,0 0),(1 1,3 1,1 3,1 1))
Was this page helpful?