Created
November 13, 2019 02:19
-
-
Save soiqualang/162e380f6f76a15594d3f6d4a62d38a3 to your computer and use it in GitHub Desktop.
PostgrteSQL/ PostGIS create bbox column
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 | |
gid, | |
"OBJECTID", | |
"MA_DVHCP", | |
ten_quan, | |
"Shape_Leng", | |
"Shape_Area", | |
the_geom, | |
imgvitri, | |
id, | |
distname, | |
distalias, | |
replace(replace(replace('' || box2d(the_geom),'BOX(',''),')',''),' ',',') as bbox | |
FROM | |
public.vs_district |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment