Created
June 1, 2021 11:01
-
-
Save zacharyDez/1f96fc71dcfa7216dcf524cc9375cce8 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
create table hex_r8 as ( | |
with envelope as ( | |
select st_envelope(wkb_geometry) geom from quartiers_sociologiques | |
), h3_id as ( | |
select h3_polyfill(geom, 8) id from envelope | |
) | |
select id, st_setsrid(h3_h3index_to_geoboundary(id), 4326) geom from h3_id | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment