Fix DMP encoder/decoder#123
Merged
Merged
Conversation
Add complete DMP export functionality that supports exporting selected sections with automatic v5/v6 version detection and handling of mixed version scenarios. Features: - Selective export of sections to DMP format - Automatic version detection (v5 for underwater/depth, v6 for dry cave/Lidar) - Mixed version handling with user dialog (export as v6 or separate files) - Export includes broken shots with corrected format - Full round-trip support (export → import produces valid data) Implementation: - Created DmpEncoderService for encoding sections to DMP binary format - Refactored DmpDecoderService to consolidate all DMP parsing logic - Extracted DMP format constants to dmp_constants.dart for shared use - Added MixedVersionDialog for user choice on mixed v5/v6 exports - Comprehensive test coverage (10 new tests, all passing) Files changed: - New: lib/services/dmp_encoder_service.dart - Section to DMP encoding - New: lib/services/dmp_decoder_service.dart - Merged DMP parsing logic - New: lib/models/dmp_constants.dart - DMP format specification - New: lib/widgets/mixed_version_dialog.dart - Mixed version UI - New: test/dmp_export_test.dart - Export functionality tests - Modified: lib/services/file_service.dart - Export orchestration - Modified: lib/main.dart - UI integration - Deleted: lib/services/data_processing_service.dart - Merged into decoder - Deleted: lib/services/lidar_coordinate_calculator.dart - Unused
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add complete DMP export functionality that supports exporting selected sections with automatic v5/v6 version detection and handling of mixed version scenarios.