Repository navigation
test(engine): adding a file through GDAL says the Z or M values it drops, and a clean file nothing (#2671) - #3007
Conversation
…ops, and a clean file nothing (opengeos#2671) The notice landed in opengeos#2764, tested only through zm_notices' wording and the reload path. This adds a GeoJSON sequence through layer.addData with real GDAL: one point with a height gives one dropped.zm notice counting 1 feature, a flat file none. Without the notify_loss call in add_gdal the test fails.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the full diff (one file, +36 lines in Bugs: None found.
Security: None found. The test writes only to a process-id-named directory under Performance: None found. Quality:
AGENTS.md: No violations found.
Twins checked: Every GDAL vector route in Already raised in earlier reviews: 0. The prior-review file has no threads, so nothing was left alone. Change sizeCompared with the base branch (merge base 336a178 to PR head d588387), this is the whole PR.
|
📖 Docs previewCommit |
Summary
#2671 asked for two things: importing a file through GDAL reports the Z/M values it drops, with a count, and a test both ways. The first landed in #2764:
add_gdalnow callszm_noticesand notifiesdropped.zm. Its tests cover the wording (a_conversion_says_its_parts_z_and_m_once_for_each_kind) and the reload path (portable_projects/reload.rs), but nothing runs the import command itself, so dropping thenotify_losscall inadd_gdalkept every test green.This adds
gdal_import_says_the_z_and_m_values_it_drops. It adds a GeoJSON sequence (a GDAL-only format) throughlayer.addData:dropped.zm, saying "Z or M coordinates on 1 source feature(s)", so only the features that carry Z are counted;The test skips without GDAL (
gdal::test_runs()), as the other GDAL tests do; CI'sGDAL and DuckDBjob runs it.Test only, no behaviour change, so the surfaces are the ones #2764 reached.
Testing
notify_losscall inadd_gdalremoved, it fails (0 notices instead of 1).cargo xtask changedpasses with GDAL onPATH.UI evidence
No visible UI change.
Related issue
Closes #2671
Summary by CodeRabbit