Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/engine/testdata/reading-losses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ but not covered here, not necessarily a known bug. CRS assumptions remain separa

| Reader dispatch | Paired corpus coverage | Remaining applicable families |
| --- | --- | --- |
| GeoJSON | Z, unreadable geometry | M, members/holes, attributes |
| GeoJSON | Z, M (null-Z measure, later vertex), unreadable geometry | Members/holes, attributes |
| TopoJSON | Z, missing arcs, bad quantized positions, nested members | M, other parts, attributes |
| Delimited text (CSV/TSV/TXT/DAT, gzip wrapper) | CSV WKT Z, bad WKT/XY, later WKT members, extra cells | M, holes/curves, types/names/encoding, wrapper parity |
| Shapefile | Point Z/M, line Z/ZM | Other shapes/parts, attributes; DBF encoding tracked in #2325 |
Expand Down
15 changes: 15 additions & 0 deletions crates/engine/tests/integration/never_silent_reading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,21 @@ pub(super) fn cases(fixture_dir: &std::path::Path) -> Vec<Case> {
geojson(&[r#"{"type":"Point","coordinates":[1,2,3]}"#]),
Expect::Classified(LossCode::DroppedZm, "Z or M"),
),
// A measure without a height: GeoJSON positions have no XYM, so the Z is null.
case(
"GeoJSON: a measure",
"a.geojson",
geojson(&[point]),
geojson(&[r#"{"type":"Point","coordinates":[1,2,null,4]}"#]),
Expect::Classified(LossCode::DroppedZm, "Z or M"),
),
case(
"GeoJSON: a measure on a line's later vertex",
"a.geojson",
geojson(&[r#"{"type":"LineString","coordinates":[[0,0],[1,1]]}"#]),
geojson(&[r#"{"type":"LineString","coordinates":[[0,0],[1,1,null,7]]}"#]),
Expect::Classified(LossCode::DroppedZm, "Z or M"),
),
case(
"GeoJSON: an unreadable geometry",
"a.geojson",
Expand Down
Loading