/ Published in: SQL
Important: this snipplet has moved to Github.
Expand |
Embed | Plain Text
-- If `polygons` is a column containing multipolygons, this returns one row per polygon. SELECT id AS id, ST_Box2D((ST_Dump(polygons)).geom) AS bbox FROM mytable WHERE polygons IS NOT NULL;
You need to login to post a comment.
