Last active
August 7, 2019 07:25
-
-
Save soiqualang/2e8c577bdd65de43e1e4c6618748c318 to your computer and use it in GitHub Desktop.
[sql] ghep bang - UNION ALL #sql #UNION #ghep_bang
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 hientrang_cong.name, | |
replace(replace(replace((''::text || box2d(st_transform(hientrang_cong.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM hientrang_cong | |
UNION ALL | |
SELECT hientrang_dap.name, | |
replace(replace(replace((''::text || box2d(st_transform(hientrang_dap.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM hientrang_dap | |
UNION ALL | |
SELECT hientrang_debao.name, | |
replace(replace(replace((''::text || box2d(st_transform(hientrang_debao.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM hientrang_debao | |
UNION ALL | |
SELECT quyhoach_cong_authuyen.name, | |
replace(replace(replace((''::text || box2d(st_transform(quyhoach_cong_authuyen.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM quyhoach_cong_authuyen | |
UNION ALL | |
SELECT quyhoach_debao.name, | |
replace(replace(replace((''::text || box2d(st_transform(quyhoach_debao.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM quyhoach_debao | |
UNION ALL | |
SELECT quyhoach_trambom.name, | |
replace(replace(replace((''::text || box2d(st_transform(quyhoach_trambom.geom, 4326))), 'BOX('::text, ''::text), ')'::text, ''::text), ' '::text, ','::text) AS bbox | |
FROM quyhoach_trambom; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment