Changeset 30391 in osm for applications/editors/josm/plugins/utilsplugin2/src/org
- Timestamp:
- 2014-04-09T20:57:34+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/PasteRelationsAction.java
r29769 r30391 56 56 for( OsmPrimitive p : selection ) { 57 57 if( !r.getMemberPrimitives().contains(p) && !r.equals(p) ) { 58 r.addMember(new RelationMember(relations.get(rel), p)); 58 String role = relations.get(rel); 59 if ("associatedStreet".equals(r.get("type"))) { 60 if (p.get("highway") != null) { 61 role="street"; 62 } else if (p.get("addr:housenumber") != null) { 63 role="house"; 64 } 65 } 66 r.addMember(new RelationMember(role, p)); 59 67 changed = true; 60 68 }
Note:
See TracChangeset
for help on using the changeset viewer.