You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
--polyfill overlap with a coverage fraction (#363). Vector hex gives a polygon the cells whose centre it contains, so a feature smaller than a cell gets one stand-in cell (#104), and two features that overlap by less than a cell can share no cell, which makes a hex join miss real overlaps. workflow --polyfill overlap (and vector --polyfill overlap) writes one row for every cell a polygon's area touches, with a cover_frac column (FLOAT, the share of the cell's area inside the feature, in (0, 1]). Cells wholly inside a piece get 1 without geometry work, and only boundary cells are intersected. H3's own 'overlap' mode omits some cells, such as a cell whose centre a small hole covers, so the neighbours of boundary cells and the cells under hole vertices are tested as well. Fractions are planar ratios in lon/lat, H3's edge convention; summed with cell areas they reproduce each polygon's area. Antimeridian crossers are cut at 180 first. Points and lines keep their cells with cover_frac NULL, as does the stand-in cell of a zero-area polygon. Not yet available with --resolution-by-area. Ported from the data-workflows script validated on all of WDPA (data-workflows #1015). The default, --polyfill centre, is unchanged.
Changed
DuckDB 2.0.1 (#114, #280). The pin moves from 2.0.0, the release every version since 0.12.0 has run on, to the 2.0.1 patch release, with the h3 community extension v2.0.1 built for it (duckdb/community-extensions#3787). Multipolygons still return no cells from h3_polygon_wkt_to_cells (#166), so the polygon-part path stays.