ST_Summary —
ST_Geometry
についての要約文を返します.
text ST_Summary(
geometry g)
;
SELECT ST_Summary(ST_GeomFromText('LINESTRING(0 0, 1 1)')) As good_line, ST_Summary(ST_GeomFromText('POLYGON((0 0, 1 1, 1 2, 1 1, 0 0))')) As bad_poly --結果 good_line | bad_poly ----------------------+------------------------- | Line[B] with 2 points : Polygon[B] with 1 rings : ring 0 has 5 points : --三次元ポリゴン SELECT ST_Summary(ST_GeomFromEWKT('LINESTRING(0 0 1, 1 1 1)')) As good_line, ST_Summary(ST_GeomFromEWKT('POLYGON((0 0 1, 1 1 2, 1 2 3, 1 1 1, 0 0 1))')) As poly --結果 good_line | poly ----------------------+------------------------- | Line[ZB] with 2 points : Polygon[ZB] with 1 rings : ring 0 has 5 points :