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
{{ message }}
Repository navigation
Analysis: spatial index for Kriging/IDW, antimeridian handling in warp Aggregate, and interpolation skip notices #2918
Brute-force k-NN in kriging_on and idw_on (crates/analysis/src/kriging.rs:375-397, crates/analysis/src/rasterops.rs:842-877): Both scan all input points per output cell with no spatial index, and their public functions pass partial_cmp().unwrap_or(Equal) without filtering non-finite coordinates. Building a static k-d tree or grid index once before the parallel row loop and using f64::total_cmp / filtering non-finite points will both speed up large point sets and prevent driftsort panics on direct API calls.
Antimeridian seam cells in warp::Aggregate::row (crates/analysis/src/warp.rs:927-999): When reprojecting a global geographic raster across +/-180 degrees with Average or Mode, output cells straddling the seam produce c0..c1 spanning almost the full raster width, aggregating pixels from the wrong hemisphere in an O(W * H) inner loop without control::check().
Silent feature skips in idw_interpolation and kriging_interpolation (crates/analysis/src/tools.rs:5035-5137): Features with missing geometries, null/non-numeric values, or non-finite coordinates are skipped without a notice in ToolResult::messages, and idw_interpolation omits periodic control::check()? in its input loop.
I'd like to take parts 2 and 3: the IDW and Kriging tools will report the features they skip (with Cancel checks in IDW's input loop), and Aggregate will take a cell that crosses ±180° from the right side of a global source. Part 1 (the spatial index) I'll leave for after #2927, which changes the same sort lines. I'll open a pull request shortly.
Activity
choupeanut commentedon Nov 28, 2026
I'd like to take parts 2 and 3: the IDW and Kriging tools will report the features they skip (with Cancel checks in IDW's input loop), and Aggregate will take a cell that crosses ±180° from the right side of a global source. Part 1 (the spatial index) I'll leave for after #2927, which changes the same sort lines. I'll open a pull request shortly.
analysis: Kriging counts rejected line and polygon coordinates as coo…
analysis: Project Raster wraps a seam by one turn of longitude and lo…
analysis: Project Raster looks at Cancel while it finds a mode and wr…
analysis: keep the westward cell at the half-turn tie (opengeos#2918)
analysis: Project Raster moves the half-turn corner that ends a drop …
analysis: a Cancel during the last row stops the one-thread row loop …
analysis: shift the corner ending a half-turn drop whatever the sourc…
analysis: whole-image wrap exception compares against image width (op…
analysis: whole-image wrap exception applies to a westward cell only (o…
fix(analysis): IDW and Kriging say which features they leave out, and…