public final class TagConflictResolutionUtil extends Object
Modifier | Constructor and Description |
---|---|
private |
TagConflictResolutionUtil()
no constructor, just static utility methods
|
Modifier and Type | Method and Description |
---|---|
static void |
combineTigerTags(TagCollection tc)
Combines tags from TIGER data
|
static void |
completeTagCollectionForEditing(TagCollection tc)
Completes tags in the tag collection
tc with the empty value
for each tag. |
static void |
normalizeTagCollectionBeforeEditing(TagCollection tc,
Collection<? extends OsmPrimitive> merged)
Normalizes the tags in the tag collection
tc before resolving tag conflicts. |
private TagConflictResolutionUtil()
public static void normalizeTagCollectionBeforeEditing(TagCollection tc, Collection<? extends OsmPrimitive> merged)
tc
before resolving tag conflicts.
Removes irrelevant tags like "created_by".
For tags which are not present on at least one of the merged nodes, the empty value ""
is added to the list of values for this tag, but only if there are at least two
primitives with tags, and at least one tagged primitive do not have this tag.tc
- the tag collectionmerged
- the collection of merged primitivespublic static void combineTigerTags(TagCollection tc)
tc
- the tag collectionpublic static void completeTagCollectionForEditing(TagCollection tc)
tc
with the empty value
for each tag. If the empty value is present the tag conflict resolution dialog
will offer an option for removing the tag and not only options for selecting
one of the current values of the tag.tc
- the tag collection