Changeset 26919 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext
- Timestamp:
- 2011-10-21T21:52:18+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SplittingMultipolygons.java
r26888 r26919 27 27 return false; 28 28 for( Node n : way.getNodes() ) { 29 if( n == null )30 System.out.println("Node is null");31 29 if( n.isIncomplete() || (a != null && !a.contains(n.getCoor())) ) 32 30 return false; … … 65 63 66 64 public static List<Relation> process( Collection<Way> selectedWays ) { 67 System.out.println("---------------------------------------");65 // System.out.println("---------------------------------------"); 68 66 List<Relation> result = new ArrayList<Relation>(); 69 67 List<Way> rings = new ArrayList<Way>(); … … 322 320 if( touchingWays.get(w) ) { 323 321 otherWays.add(new TheRing(w)); 324 System.out.println("Touching ring: " + otherWays.get(otherWays.size()-1));322 // System.out.println("Touching ring: " + otherWays.get(otherWays.size()-1)); 325 323 } 326 324 -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/TheRing.java
r26888 r26919 57 57 */ 58 58 public static List<Relation> makeManySimpleMultipolygons( Collection<Way> selection, List<Command> commands ) { 59 System.out.println("---------------------------------------");59 log("---------------------------------------"); 60 60 List<TheRing> rings = new ArrayList<TheRing>(selection.size()); 61 61 for( Way w : selection ) … … 83 83 RingSegment segment2 = other.segments.get(j); 84 84 if( !segment2.isReference() ) { 85 System.out.println("Comparing " + segment1 + " and " + segment2);85 log("Comparing " + segment1 + " and " + segment2); 86 86 Node[] split = getSplitNodes(segment1.getNodes(), segment2.getNodes(), segment1.isRing(), segment2.isRing()); 87 87 if( split != null ) { 88 88 if( !collideNoted ) { 89 System.out.println("Rings for ways " + source.getUniqueId() + " and " + other.source.getUniqueId() + " collide.");89 log("Rings for ways " + source.getUniqueId() + " and " + other.source.getUniqueId() + " collide."); 90 90 collideNoted = true; 91 91 } … … 125 125 int firstPos = isRing1 ? pos : nodes1.size(); 126 126 while( !collideFound ) { 127 System.out.println("pos=" + pos);127 log("pos=" + pos); 128 128 int start1 = pos; 129 129 int start2 = nodes2.indexOf(nodes1.get(start1)); … … 141 141 } 142 142 } 143 System.out.println("last1=" + last1 + " last2=" + last2 + " increment2=" + increment2);143 log("last1=" + last1 + " last2=" + last2 + " increment2=" + increment2); 144 144 if( increment2 != 0 ) { 145 145 // find the first nodes … … 155 155 } 156 156 } 157 System.out.println("last1=" + last1 + " last2=" + last2);157 log("last1=" + last1 + " last2=" + last2); 158 158 if( increment2 < 0 ) { 159 159 int tmp = start2; … … 205 205 RingSegment segment = segments.get(segmentIndex); 206 206 boolean isRing = segment.isRing(); 207 System.out.println("Split segment " + segment + " at nodes " + n1.getUniqueId() + " and " + n2.getUniqueId());207 log("Split segment " + segment + " at nodes " + n1.getUniqueId() + " and " + n2.getUniqueId()); 208 208 boolean reversed = segment.getNodes().indexOf(n2) < segment.getNodes().indexOf(n1); 209 209 if( reversed && !isRing ) { … … 409 409 } 410 410 411 private static void log( String s ) { 412 // System.out.println(s); 413 } 414 411 415 private static class RingSegment { 412 416 private List<Node> nodes; … … 512 516 513 517 public void makeReference( RingSegment segment ) { 514 System.out.println(this + " was made a reference to " + segment);518 log(this + " was made a reference to " + segment); 515 519 this.nodes = null; 516 520 this.references = segment;
Note:
See TracChangeset
for help on using the changeset viewer.