Skip to content

Fix OSM→OSW handling for ext-only geometries and node reference export#47

Merged
sujata-m merged 1 commit into
developfrom
feature-3477
Apr 10, 2026
Merged

Fix OSM→OSW handling for ext-only geometries and node reference export#47
sujata-m merged 1 commit into
developfrom
feature-3477

Conversation

@sujata-m
Copy link
Copy Markdown
Contributor

Dev Board Ticket

https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3477
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3022

Changes

This PR fixes several OSM→OSW regressions around ext:* tags and export classification.

  • Semantic feature recognition now uses canonical OSM tags only; ext:* tags are preserved as extensions instead of being treated as feature-defining tags.
  • Closed ext-only ways such as ext:demolished:building=yes now export correctly as polygons and no longer fall through to point geometry construction, which previously caused KeyError: 'lon'.
  • GeoJSON export now keeps topology endpoint points in nodes.geojson, ensuring edge _u_id and _v_id references remain OSW-compliant during roundtrip validation.
  • Added regression coverage for bug_3477, serializer-level node/point remapping, and the OSW compliance failure.
  • Bumped the package version to 0.3.3 and updated the changelog.

Testing

  • Updated existing unit test cases
  • Added 2 new unit test cases

## Dev Board Ticket

https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3477
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3022

## Changes
**PR Title**

Fix OSM→OSW handling for ext-only geometries and node reference export

**PR Summary**

This PR fixes several OSM→OSW regressions around `ext:*` tags and export classification.

- Semantic feature recognition now uses canonical OSM tags only; `ext:*` tags are preserved as extensions instead of being treated as feature-defining tags.
- Closed ext-only ways such as `ext:demolished:building=yes` now export correctly as polygons and no longer fall through to point geometry construction, which previously caused `KeyError: 'lon'`.
- GeoJSON export now keeps topology endpoint points in `nodes.geojson`, ensuring edge `_u_id` and `_v_id` references remain OSW-compliant during roundtrip validation.
- Added regression coverage for `bug_3477`, serializer-level node/point remapping, and the OSW compliance failure.
- Bumped the package version to `0.3.3` and updated the changelog.

## Testing
- Updated existing unit test cases
- Added 2 new unit test cases
@sujata-m sujata-m requested review from MashB and susrisha April 10, 2026 10:42
@sujata-m sujata-m merged commit a29c3bf into develop Apr 10, 2026
1 check 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