Revision 8031 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/topology/geomgraph/SnappingNodeMap.java

View differences:

SnappingNodeMap.java
60 60
		List resultAreaEdgeList = null;
61 61

  
62 62
		List getResultAreaEdges() {
63
			// print(System.out);
64 63
			if (resultAreaEdgeList != null)
65 64
				return resultAreaEdgeList;
66 65
			resultAreaEdgeList = new ArrayList();
......
279 278
				Label label = de.getLabel();
280 279
				Label symLabel = de.getSym().getLabel();
281 280
				label.merge(symLabel);
282
				System.currentTimeMillis();
283 281
			}
284 282
		}
285 283

  
......
457 455
	 */
458 456
	public void add(EdgeEnd e) {
459 457
		Coordinate p = e.getCoordinate();
460
		System.out.println("Verificando nodo " + p.toString());
461 458
		Node n = addNode(p);
462
		System.out.println("antes de a?adir...");
463 459
		List list = n.getEdges().getEdges();
464
		System.out.println(list.size());
465 460
		for (int i = 0; i < list.size(); i++) {
466 461
			EdgeEnd ee = (EdgeEnd) list.get(i);
467
			System.out.println("edge" + i);
468 462
			Coordinate[] coords = ee.getEdge().getCoordinates();
469 463
			String ctx = "(";
470 464
			for (int j = 0; j < coords.length; j++) {
471 465
				ctx += coords[j].x + " " + coords[j].y + ",";
472 466
			}
473 467
			ctx += ")";
474
			System.out.println(ctx);
475 468
		}
476
		System.out.println("despues de a?adir...");
477 469
		n.add(e);// Si el nodo ya existe, se le a?ade una arista
478 470
		list = n.getEdges().getEdges();
479
		System.out.println(list.size());
480 471
		for (int i = 0; i < list.size(); i++) {
481 472
			EdgeEnd ee = (EdgeEnd) list.get(i);
482
			System.out.println("edge" + i);
483 473
			Coordinate[] coords = ee.getEdge().getCoordinates();
484 474
			String ctx = "(";
485 475
			for (int j = 0; j < coords.length; j++) {
486 476
				ctx += coords[j].x + " " + coords[j].y + ",";
487 477
			}
488 478
			ctx += ")";
489
			System.out.println(ctx);
490 479
		}
491 480
	}
492 481

  

Also available in: Unified diff