Created
December 10, 2012 02:28
-
-
Save mhkeller/4248031 to your computer and use it in GitHub Desktop.
Create multigeometry polygon in PostGIS / CartoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ST_Multi(ST_Union(the_geom)) as the_geom, cols... FROM (SELECT cartodb_id, cols..., | |
ST_Buffer(the_geom,0.0) as the_geom FROM table_name) as | |
buffered_table GROUP BY value_to_join_on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment