uber / h3

Hexagonal hierarchical geospatial indexing system
https://h3geo.org
Apache License 2.0
4.8k stars 457 forks source link

Completely cover a polygon with H3 cells using H3 extension for PostGIS #842

Open sampeters1 opened 3 months ago

sampeters1 commented 3 months ago

Using the H3 extension for PostGIS I want to fully cover a polygon with H3 cells, meaning all H3 cells should intersect with the given polygon. The h3_polygon_to_cells function only fills my polygon with hexagon that are contained by the cell's centroids, while the h3_coverage function (explained here) seems exactly what I am looking for. However, this function doesn't seem to be available in the H3 extension for PostGIS.

Any advice?