Changeset 2906 in josm for trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
- Timestamp:
- 2010-01-29T22:26:58+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r2842 r2906 250 250 ways.add(b); 251 251 252 // This is mostly copied and pasted from CombineWayAction.java and one day should be moved into tools252 // FIXME: This is mostly copied and pasted from CombineWayAction.java and one day should be moved into tools 253 253 Map<String, Set<String>> props = new TreeMap<String, Set<String>>(); 254 254 for (Way w : ways) { 255 for ( Entry<String,String> e : w.entrySet()) {256 if (!props.containsKey( e.getKey())) {257 props.put( e.getKey(), new TreeSet<String>());258 } 259 props.get( e.getKey()).add(e.getValue());255 for (String key: w.keySet()) { 256 if (!props.containsKey(key)) { 257 props.put(key, new TreeSet<String>()); 258 } 259 props.get(key).add(w.get(key)); 260 260 } 261 261 }
Note:
See TracChangeset
for help on using the changeset viewer.