Ignore:
Timestamp:
2014-04-09T20:57:34+02:00 (11 years ago)
Author:
bastik
Message:

applied #josm9887 - associatedStreet special handling for Paste relations (patch by tyndare)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/PasteRelationsAction.java

    r29769 r30391  
    5656            for( OsmPrimitive p : selection ) {
    5757                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));
    5967                    changed = true;
    6068                }
Note: See TracChangeset for help on using the changeset viewer.