Last active
August 29, 2015 14:24
-
-
Save joshuapowell/1f25ec149b0c5c295356 to your computer and use it in GitHub Desktop.
Dissolve all HUC 12 Polygons into a single HUC 6 Polygon
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 | |
huc_6_name, | |
ST_AsGeoJson(ST_Multi(ST_Union(CAST(t.geometry AS Geometry)))) as huc_6_dissovled | |
FROM | |
territory AS t | |
WHERE | |
huc_6_name = 'Potomac' | |
GROUP BY | |
huc_6_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment