Skip to content

Move altitude from Feature property to Coordinate3D Z component - #2

Merged
trasch merged 1 commit into
mainfrom
move-altitude-to-coordinate-z
Jul 31, 2026
Merged

trasch merged 1 commit into
mainfrom
move-altitude-to-coordinate-z

Conversation

@trasch

@trasch trasch commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Altitude values are now stored as the 3rd element (Z) of each Coordinate3D in the MultiLineString geometry instead of being a parallel array in feature.properties["fit_altitudes"].

  • decode: altitude embedded in Coordinate3D(z:) during buildSegments
  • encode: altitude read from coordinate.altitude via buildRecordMessage
  • fitAltitudes now reads from coordinate Z values
  • fitPointFeatures writes altitude to coordinate.altitude, not properties
  • fitTrackFromPointFeatures preserves altitude in coordinates
  • Added 4 altitude-specific tests verifying Z embedding and round-trips

Altitude values are now stored as the 3rd element (Z) of each
Coordinate3D in the MultiLineString geometry instead of being a
parallel array in feature.properties["fit_altitudes"].

- decode: altitude embedded in Coordinate3D(z:) during buildSegments
- encode: altitude read from coordinate.altitude via buildRecordMessage
- fitAltitudes now reads from coordinate Z values
- fitPointFeatures writes altitude to coordinate.altitude, not properties
- fitTrackFromPointFeatures preserves altitude in coordinates
- Added 4 altitude-specific tests verifying Z embedding and round-trips
@trasch trasch self-assigned this Jul 31, 2026
@trasch trasch added the enhancement New feature or request label Jul 31, 2026
@trasch
trasch merged commit 6f0bf83 into main Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant