feat: export descriptions as GPX #759
Merged
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.
This pull request refactors type handling across multiple modules in the
mapillary_toolspackage to improve code consistency and maintainability. Key changes include replacing references totypes.UserItemwithconfig.UserItem, introducing new serializers for metadata, and simplifying GPX-related functionality.Type Refactoring
types.UserItemwithconfig.UserIteminmapillary_tools/authenticate.pyto align with the newUserItemschema defined inmapillary_tools/config.py. Updated functions such as_validate_profile,_verify_user_auth, and_list_all_profilesaccordingly. [1] [2] [3] [4] [5] [6]Serializer Integration
DescriptionJSONSerializerandGPXSerializerfor metadata handling inmapillary_tools/serializer. Updated methods inmapillary_tools/history.py,process_geotag_properties.py, andprocess_sequence_properties.pyto use these serializers for metadata serialization and validation. [1] [2] [3] [4] [5]GPX Handling Improvements
GPXSerializertomapillary_tools/serializer/gpx.py, enabling streamlined serialization of GPX data. This includes handling image sequences, video metadata, and error metadata as GPX tracks and points.Utility Function Updates
types.datetime_to_map_capture_timeandtypes.map_capture_time_to_datetimewithbuild_capture_timeandparse_capture_timefromserializer.descriptioningeotag_images_from_gpx.pyandsample_video.py. This simplifies date-time conversions. [1] [2]Code Cleanup
config.py. SimplifiedDEFAULT_MAPILLARY_FOLDERinitialization and refactoredload_userandlist_all_usersfunctions to use the newUserItemtype. [1] [2] [3]