Skip to content

Develop to Main#63

Merged
sujata-m merged 2 commits into
mainfrom
develop
May 11, 2026
Merged

Develop to Main#63
sujata-m merged 2 commits into
mainfrom
develop

Conversation

@sujata-m
Copy link
Copy Markdown
Contributor

Dev Board Ticket

Changes

  • Added geometry mapping consistency validation for OSW datasets in OSWValidation.validate():
    • edges._u_id must match edge start coordinate with referenced node coordinate.
    • edges._v_id must match edge end coordinate with referenced node coordinate.
    • zones._w_id referenced node coordinates must appear on zone polygon vertices.
  • Added standalone pure-Python geometry mapping validator module with reusable helpers for node indexing and edge/zone mapping checks.
  • Improved validation error reporting for geometry mapping mismatches with detailed, actionable context (dataset name, feature index/id, referenced node id, expected vs actual coordinates).
  • Bumped library version to 0.4.0 and updated changelog entries for the new geometry mapping feature set.
  • Added new geometry mapping fixtures and expanded unit test coverage across validator-level and end-to-end validation paths.

Testing

  • Wrote 35 new unit test cases:
    • 19 in test_geometry_mapping_validator.py
    • 10 in test_osw_validation_extras.py
    • 6 in test_osw_validation.py
  • Added dedicated unit tests for standalone geometry mapping validator covering valid cases, missing refs, unknown refs, coordinate mismatches, and integration aggregation.
  • Added end-to-end validation tests for _u_id, _v_id, and _w_id coordinate mismatch scenarios using fixture ZIP datasets.
  • Added mock-driven validation tests to ensure geometry mapping checks are exercised through validate() behavior and issue metadata output.

sujata-m and others added 2 commits May 7, 2026 19:09
## Dev Board Ticket

- https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3607/
## Changes

- Added geometry mapping consistency validation for OSW datasets in `OSWValidation.validate()`:
  - `edges._u_id` must match edge start coordinate with referenced node coordinate.
  - `edges._v_id` must match edge end coordinate with referenced node coordinate.
  - `zones._w_id` referenced node coordinates must appear on zone polygon vertices.
- Added standalone pure-Python geometry mapping validator module with reusable helpers for node indexing and edge/zone mapping checks.
- Improved validation error reporting for geometry mapping mismatches with detailed, actionable context (dataset name, feature index/id, referenced node id, expected vs actual coordinates).
- Bumped library version to `0.4.0` and updated changelog entries for the new geometry mapping feature set.
- Added new geometry mapping fixtures and expanded unit test coverage across validator-level and end-to-end validation paths.

## Testing

- Wrote **35 new unit test cases**:
  - 19 in `test_geometry_mapping_validator.py`
  - 10 in `test_osw_validation_extras.py`
  - 6 in `test_osw_validation.py`
- Added dedicated unit tests for standalone geometry mapping validator covering valid cases, missing refs, unknown refs, coordinate mismatches, and integration aggregation.
- Added end-to-end validation tests for `_u_id`, `_v_id`, and `_w_id` coordinate mismatch scenarios using fixture ZIP datasets.
- Added mock-driven validation tests to ensure geometry mapping checks are exercised through `validate()` behavior and issue metadata output.
[0.4.0] Add geometry-to-node coordinate mapping validation
@sujata-m sujata-m requested review from MashB and susrisha May 11, 2026 08:05
@sujata-m sujata-m merged commit ec09023 into main May 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants