test(integration): RS_ReprojectMatch parity between SedonaDB and Sedona Spark - #1234
Merged
Merged
Conversation
…na Spark The nearest-neighbour path agrees bit-for-bit everywhere probed: same-CRS regrids onto finer and larger reference grids (anchored — nearest picks the source pixel under each output centre, uncovered cells fill with the input band's nodata), a genuine EPSG:4326 -> EPSG:3857 warp, and CRS-less inputs. Two xfails, both the divergence family RS_Resample catalogs: Bilinear kernels differ (GDAL vs the JVM), and Sedona Spark silently resamples nearest for unknown algorithm names where SedonaDB rejects them.
Drop the path_writer callbacks (_register/_add_view and their lambdas) for the suite's plain idiom — write the GeoTIFFs inline and loop the engines — and hoist the transform_bounds import to module level (the parity suite hard-requires rasterio).
james-willis
marked this pull request as ready for review
September 4, 2026 20:36
paleolimbot
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parity coverage for
RS_ReprojectMatch, probe-first, one module per function. Branches offmain, independent of the other open parity PRs.What agrees (4 passing tests)
The nearest-neighbour path is bit-for-bit identical everywhere probed:
python/sedonadb/tests), and the engines matched exactly.What diverges (2 xfails, both already cataloged for RS_Resample)
'sinc'; Sedona Spark silently resamples nearest.Verification
4 passed, 2 xfailedlocally (pyspark 4.0.4, Sedona 1.9.1); CI runs the parity lane on this branch.