Skip to content

Conversation

@sujata-m
Copy link
Contributor

@sujata-m sujata-m commented Jun 3, 2025

0.2.7

  • Fixed BUG 1654
  • Added functionality to retain the ext tags

Unit Tests

  • Verified all output files are valid GeoJSON FeatureCollections
  • Ensured nodes files contain only Point geometries
  • Validated that all feature _id properties are strings
  • Asserted no features are missing geometry or coordinates
  • Checked that no duplicate _id values exist within any generated file

sujata-m and others added 8 commits May 21, 2025 00:44
### Summary

Fixed [BUG 1654](https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1654)

This PR enhances the unit test suite for the `OSM2OSW` conversion module by adding comprehensive validation of the generated GeoJSON files. It ensures structural integrity and proper preservation of `ext:` tags during the OSM-to-OSW conversion process.

---

### Changes Made

- Added test to verify presence of `ext` tags in generated feature properties
- Verified all output files are valid GeoJSON FeatureCollections
- Ensured `nodes` files contain only Point geometries
- Validated that all feature `_id` properties are strings
- Asserted no features are missing geometry or coordinates
- Checked that no duplicate `_id` values exist within any generated file

---

### Motivation

These tests address regression concerns related to dropped `ext` tags in output. They also help guarantee conformance with the OSW schema expectations.

---

### Test Plan

Run:
```bash
python -m unittest discover -v tests/unit_tests
…to OSM XML.

  - Asserts that the number of nodes and ways is identical between the original and the final XML files.
  - Optionally, checks that the tags for nodes and ways are preserved where IDs match.
@sujata-m sujata-m requested a review from susrisha June 3, 2025 12:05
@sujata-m sujata-m merged commit 24d2a15 into main Jun 3, 2025
2 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.

3 participants