Opened 20 months ago
Last modified 12 months ago
#23481 new enhancement
add more flexibility when exporting a relation to a GPX layer or file — at Version 4
Reported by: | cmuelle8 | Owned by: | team |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description (last modified by )
This patch is a major overhaul of the GPX conversion feature offered for relations by the RelationList dialog.
The input data is searched for the roles assigned to relation list members.
If and only if more than one role (usually: more than the empty role) is found, a dialog with four options is shown on how to deal with relation roles during the export process, these are:
- allow any role
- user-select roles to be considered
- allow preset-defined roles only
- ignore roles / treat all as empty
Userselection is an expert feature, because it may give unexpected results. It allows deselection of e. g. forward / backward roles that the WayConnectionTypeCalculator depends on to resolve directional variants of a route. Excluding members having these roles will impact the WayConnectionTypeCalculator's decisions for the remaining members and in consequence split the members in a different manner than if it would see the full data. A tooltip is provided to raise awareness to this.
Preset-defined option will look up the defined roles for the specific relation type being exported and any member with an (preset-wise) undefined role will be discarded during export.
Ignore roles can, amongst other use cases, be used to export all relation members of an otherwise bidirectional route, bypassing the WayConnectionTypeCalculator. It is less intended to produce a clean GPX for travel directions and contain possibly lots of disjoint segments, but offers the possibility to export all the relation geometry 1:1.
The patch is against an older revision and untested to apply cleanly to latest. Sorry for any inconvenience.
Change History (8)
by , 20 months ago
Attachment: | josm_export_relation_to_gpx_r18721_rev02rc.patch added |
---|
comment:1 by , 20 months ago
Description: | modified (diff) |
---|
comment:2 by , 20 months ago
Type: | defect → enhancement |
---|
comment:3 by , 20 months ago
Priority: | normal → minor |
---|
by , 20 months ago
Attachment: | user-options-for-role-based-export-rev03rc.png added |
---|
cp. to previous rev02rc adds additional option to sanitize output
by , 20 months ago
Attachment: | josm_export_relation_to_gpx_r18721_rev03rc.patch added |
---|
cp. to previous rev02rc adds additional option to sanitize output
comment:4 by , 20 months ago
Description: | modified (diff) |
---|
revamp export relation to gpx feature