Skip to content

v0.12.0

Choose a tag to compare

@cboettig cboettig released this 29 Oct 05:44
· 46 commits to main since this release
d149ddb

cng-datasets 0.12.0 moves to DuckDB 2.0.0, drops ibis, and writes rows in spatial order. It also fixes several build failures and a column lost from chunked builds, and adds annual raster series and measured pod sizing. The full entries are in CHANGELOG.md.

Upgrade notes

  • DuckDB 2.0.0 is pinned exactly (#280). Remote Parquet scans on Ceph were 1.7–3× faster. Connections set geometry_always_xy, and ST_Area_Spheroid now reads (lon, lat). v0.12.1 will move to 2.0.1 when it ships.
  • ibis is no longer a dependency (#291).
  • Rows are written in Hilbert order and _cng_fid is numbered along the curve (#276). A county join went from 13.1 s to 2.5 s. --no-spatial-order keeps source order.
  • COGs from preprocess-cog are sparse (SPARSE_OK, #251). GDAL, rasterio, tifffile and geotiff.js 3.0 or later read them unchanged. geotiff.js 1.x/2.x (OpenLayers before 10.9, georaster) cannot.
  • The per-feature cell guard default is now 1 billion, up from 134 million (#125). CNG_MAX_CELLS_PER_FEATURE still overrides it.

Fixed

  • Chunked builds keep their h0 column (#305). merge-chunks dropped the parts' own h0 column, so every --chunk-resolution build published files without it. A hive read hid this.
  • A complete fan-out that found no data now succeeds (#299). It used to fail at merge-chunks.
  • Antimeridian cells are read unwrapped in the source's own longitude frame (#295). This fixes a slow h0, and a silent loss of every cell in -180..-170 for sources stored in another frame.

New and changed

  • raster-workflow --years builds an annual series as one collection, with per-year COGs and hex/year=<year>/h0=<cell>/ (#172).
  • The vector polyfill cuts large polygon parts into pieces, with exactly the same output (#125). A 200k-vertex polygon at res 7 went from 565 s to 17.7 s.
  • Raster hex skips parts of a sparse source that hold no data, using the GeoTIFF's tile index (#251). Global Mangrove Watch h0 40 at res 10 went from 282 M to 82 M cells.
  • The vector polyfill reads polygon parts as WKB (#166).
  • Armada jobs past NRP's pod size limit (16 cpu / 32Gi) are refused when the workflow is generated (#183).
  • merge-chunks reports what each chunk's pod measured using, and prints --hex-memory, --hex-cpu and --hex-workers for the next build (#183).