Opened 8 years ago

Last modified 8 years ago

#15606 closed enhancement

[patch] export relation to GPX file or convert to a new GPX layer (e.g. for further editing such as simplify way) — at Version 1

Reported by: cmuelle8 Owned by: team
Priority: normal Milestone: 17.12
Component: Core Version: latest
Keywords: export gpx relation route superroute Cc:

Description (last modified by cmuelle8)

I've tackled on the lack of an export feature for route relations,
and this is what I've come up with..

..in the hope it will be useful to someone.

The algorithm runs recursively on the found relation members,
but ignores incomplete relations (i.e. downloading of incomplete
relations is not done automatically currently, but could be added).

  • sort order of the relations is untouched and roles forward/backward are recognized
  • single-membered roundabouts are silently skipped (i.e. no new trkSeg is started)
  • loops (forward/backward) should be handled correctly (i.e. one role is ignored)

The aim is primarily to reply a single segmented track from A to B, but if the sort
order of the relation does not provide this, multiple track segments for the generated
GPX are created. We could run the relationSorter and try to fix a broken order before
GPX export, but this discourages users to actually fix broken route relations, so the
algorithm _intentionally_ takes the sort order of the relation as they are.


Feel free to test or modify,
Greetings

Change History (2)

comment:1 by cmuelle8, 8 years ago

Description: modified (diff)

added image to description

Note: See TracTickets for help on using tickets.