Created
July 17, 2020 01:13
-
-
Save djouallah/91782fd407c9f16433d5dbe33e326be7 to your computer and use it in GitHub Desktop.
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
WITH Geographies AS | |
(SELECT ST_GEOGFROMTEXT('POINT(1 1)') AS g ,'newgeopmetry' as t UNION ALL | |
SELECT ST_GEOGFROMTEXT('POINT(1 3)') AS g ,'newgeopmetry' as t UNION ALL | |
SELECT ST_GEOGFROMTEXT('POINT(1 2)') AS g ,'newgeopmetry' as t ) | |
SELECT | |
t, ST_CONVEXHULL(g) AS polygon FROM Geographies group by 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment