Skip to content

v0.3.0

Choose a tag to compare

@cboettig cboettig released this 20 Jul 03:33
· 135 commits to main since this release
da5c581

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_cells reads 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)
  • workflow now shlex.quotes each --source-url when interpolating it into the generated convert command, so URLs carrying & query strings (common for ArcGIS Hub / REST download endpoints) no longer break the bash -c step apart into background jobs (#147)

Added

  • --resolution-by-area for variable-resolution (size-stratified) H3 hex tiling: each feature is hexed at the native resolution its planar ST_Area maps 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 a native_res column, 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)