Created
March 7, 2012 00:50
-
-
Save booo/1990168 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * INTO postcodes_convex FROM | |
| (SELECT ST_ConvexHull(ST_Collect(geom)) AS geom, tags->'addr:postcode' AS postal_code | |
| FROM nodes | |
| WHERE tags ? 'addr:postcode' GROUP BY postal_code) AS foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment