Skip to content

Conversation

@sujata-m
Copy link
Contributor

@sujata-m sujata-m commented Oct 9, 2025

Dev Board Ticket

https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/2409
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/2422

Changes

  1. OSMTaggedNodeParser Enhancements

    • Now applies OSW node and point filters with normalization before adding loose tagged nodes.
    • Non-compliant features like crossings are no longer emitted.
  2. Serializer & Test Coverage

    • Serializer tests were extended to verify the new tagged-node behavior.
    • Tests confirm compliant kerb features are retained and schema-invalid crossings are skipped.
    • Added 14 new unit test cases.
  3. GeoJSON Node Export Improvements

    • Normalizes IDs and retains full OSM identifiers.
    • Skips non-OSW features so schema-invalid crossings are not emitted.
    • Ensures only synthetic node IDs have their prefix trimmed, fixing bugs where numeric IDs lost digits and caused _id/ext:osm_id mismatches.
  4. Filtering & Metadata Handling

    • GeoJSON export refined to filter nodes using tag-only metadata.
    • Prevents schema-invalid features from being emitted.
  5. Identifier Normalization

    • Normalized ext:osm_id handling to preserve full numeric identifiers.
    • Trims prefixed synthetic values only.
  6. Version & Documentation Updates
    • Package version bumped to 0.2.12.
    • ChangeLog updated.

Testing

  • Added 14 new unit test cases

## Dev Board Ticket
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/2409

## Changes
- Updated OSMTaggedNodeParser to apply the OSW node and point filters with normalization before adding loose tagged nodes, ensuring non-compliant features like crossings are no longer emitted.
- Extended serializer tests to cover the new tagged-node behavior, confirming that compliant kerb features are retained while schema-invalid crossings are skipped.
- Updated GeoJSON node export to normalize IDs, retain full OSM identifiers, and skip non-OSW features so schema-invalid crossings are no longer emitted.
- Ensured only synthetic node IDs have their prefix trimmed, fixing the prior bug where numeric IDs lost the leading digit and caused _id/ext:osm_id mismatches.
- Expanded serializer tests to cover OSW-compliant node export, rejection of non-compliant crossings, and prefix handling for generated point IDs.
- Refined GeoJSON export to filter nodes using tag-only metadata, preventing schema-invalid features from being emitted.
- Normalized ext:osm_id handling to preserve full numeric identifiers while trimming prefixed synthetic values.
- Updated package version `0.2.12`
- Updated ChangeLog

## Testing
- Added 10 new unit test cases
Copy link
Contributor

@sureshgaussian sureshgaussian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved after testing the branch code locally with a couple of examples.

@sujata-m sujata-m merged commit 989a2f5 into develop Oct 15, 2025
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.

4 participants