Created
October 30, 2011 13:21
-
-
Save booo/1325891 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 ST_AsText(ST_Polygonize(linestring)) AS GEOM FROM ( | |
| SELECT linestring FROM ways, relations, relation_members | |
| WHERE | |
| relations.id = 162902 | |
| AND | |
| relations.id = relation_members.relation_id | |
| AND | |
| ways.id = relation_members.member_id | |
| ORDER BY relation_members.sequence_id | |
| ) AS foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment