gpx icon indicating copy to clipboard operation
gpx copied to clipboard

Use procs to decorate GPX result from GeoJSON

Open niborg opened this issue 3 years ago • 0 comments

GeoJSON often has ad hoc data stored in a "properties" object within each feature. Some of this data can be useful when transferred to a GPX file. Since there is no universal way to transfer the data, this commit allows a developer to specify an object that responds to "call" (e.g., lambdas or procs) to decorate a GPX feature during the conversion. The following are available:

  • line_string_feature_to_segment
  • multi_line_string_feature_to_track
  • point_feature_to_waypoint
  • multi_point_feature_to_waypoint

niborg avatar Jul 18 '21 22:07 niborg