Repository navigation
Civil: read the point databases the application writes (W1-5) - #655
Merged
HakanSeven12 merged 1 commit intoNov 24, 2026
Merged
Conversation
The point database reader decoded no application drawing: it required the per-record marker short to be exactly 0x0420 (this crate's records) where the application writes 0x0421, or 0x0621 for points a survey created, and it expected an empty list where the application's records carry a leading tagged list before the named points. Both forms are documented and read; this crate's own records keep an empty leading list, so its writer is unchanged and its files read as before. Over the whole tutorial corpus this is 53,521 of 53,522... (continued) Full message in PR body.
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.
D016 wave-1 packet-1 gap W1-5 (+ D017 packet-2 W2-1), corpus-roundtrip context
cogo_points()returned 0 of 538AECC_COGO_POINTrecords in Survey-3.dwg and 0 of 2405 in Points-4a.dwg. The codec's own write path was bit-exact; this was a READ-side hole — and probing showed it was not survey-specific: every application-written point database decoded to 0 (28 tutorial files, 53,521 entities).Root cause (two record-form differences, both read-side)
0x0420(what this crate writes). The application writes0x0421— and0x0621for points a survey created. Observed over the whole tutorial corpus: 53,190 ×0x0421, 1,614 ×0x0621, no other form; the record layout does not change with the flag bits. The reader now masks the observed flag bits and keeps the0x0420base check.BL jA,jA × { BL number, BL text tag }) where the crate expected a literalBL 0and failed on any non-empty one. String-stream arithmetic confirms the field in every sample:strings = "" + jA texts + names + names (2nd copy) + raw descriptions + slot texts(Points-2: 1+51+2405; Profile-5C: 1+2+2×1525+1525; Survey-3: 1+538; Intro-2: 1+2×2405+2405). Its semantics are not mapped yet (its texts are notPointName— the application readsname=[]for those points), so the list is consumed structurally and kept out of the API (graceful-None ruling). This crate's records place an empty list there, so the writer is unchanged and its files read as before.Verification
CogoPoint.Easting/Northing/Elevation, readOnly, 2026-11-24):ACADRUST_CIVIL_TUTORIALS_DIRset; re-run green on the rebased tip 483de92).Tests
tests/civil_read_cogo_points_app.rs: the survey-created form (Survey-3, 538 points, marker0x0621) and the create-points form (Points-4a, 2405 points, marker0x0421, 51 label styles) with exact live-API positions; census on Points-2/3/4e/Survey-2B; crate-written records unchanged (existingrt_data_cogo_pointssuite).D016 packet-1 gap log: W1-5 (Survey-3 538/0); D017 packet-2: W2-1 (Points-4a 2405/0). Closes the READ gap for the whole family; the corpus-roundtrip branch builds Survey-3's manifest from these records.