- Timestamp:
- 2021-07-19T22:55:31+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r18075 r18076 23 23 import java.util.stream.Stream; 24 24 25 import org.openstreetmap.josm.data.gpx.GpxConstants; 25 26 import org.openstreetmap.josm.spi.preferences.Config; 26 27 import org.openstreetmap.josm.tools.Utils; … … 798 799 List<String> l = new LinkedList<>(Arrays.asList( 799 800 "source", "source_ref", "source:", "comment", 800 "watch", "watch:", "description", "attribution" ));801 "watch", "watch:", "description", "attribution", GpxConstants.GPX_PREFIX)); 801 802 l.addAll(getDiscardableKeys()); 802 803 l.addAll(getWorkInProgressKeys()); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java
r18075 r18076 17 17 18 18 import org.openstreetmap.josm.actions.SimplifyWayAction; 19 import org.openstreetmap.josm.data.gpx.GpxConstants;20 import org.openstreetmap.josm.data.osm.AbstractPrimitive;21 19 import org.openstreetmap.josm.data.osm.DataSet; 22 20 import org.openstreetmap.josm.data.osm.Way; … … 72 70 double err = SimplifyWayAction.askSimplifyWays(ways, tr("Would you like to simplify the ways in the converted layer?"), true); 73 71 if (err > 0) { 74 try { 75 // Consider the GPX tags uninteresting temporarily, to make sure it doesn't prevent simplification to remove nodes 76 AbstractPrimitive.getUninterestingKeys().add(GpxConstants.GPX_PREFIX); 77 SimplifyWayAction.simplifyWays(ways, err); 78 } finally { 79 AbstractPrimitive.getUninterestingKeys().remove(GpxConstants.GPX_PREFIX); 80 } 72 SimplifyWayAction.simplifyWays(ways, err); 81 73 } 82 74 final OsmDataLayer osmLayer = new OsmDataLayer(ds, tr("Converted from: {0}", layer.getName()), null);
Note:
See TracChangeset
for help on using the changeset viewer.