Repository navigation
v0.3.0
First release published to PyPI (pip install cng-datasets) via trusted publishing.
Fixed
- Vector H3 hex now splits circumpolar / transmeridian polygons (longitude-bbox span > 180°) into sub-180° longitude bands before polyfill, so they fill their full band instead of collapsing to ~1 cell. H3
polygon_to_cellsreads a >180° ring as the minimal-area (complement) side; a full −180..180 band (e.g. CCAMLR's Southern-Ocean RFB) previously produced ~1 cell instead of millions. Narrow (<180°-span) polygons keep the original fast path unchanged (#145) workflownowshlex.quotes each--source-urlwhen interpolating it into the generated convert command, so URLs carrying&query strings (common for ArcGIS Hub / REST download endpoints) no longer break thebash -cstep apart into background jobs (#147)
Added
--resolution-by-areafor variable-resolution (size-stratified) H3 hex tiling: each feature is hexed at the native resolution its planarST_Areamaps to, so very large polygons use a coarse resolution while small ones keep fine edges — avoiding the Pass-2 OOM / 2 GB parquet-page limit without dropping the whole dataset to a coarse resolution. Output carries a uniform union schema (one column per resolution, finer columns null in coarser tiers) plus anative_rescolumn, preserving flat equality joins. The #107 oversized-feature guardrail now estimates each feature's cells at its own native resolution, so large features back off automatically (#98)