Revision 4923 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java

View differences:

ShpStrategy.java
622 622
        Coordinate c1 = new Coordinate(bounds.getMinX(), bounds.getMinY());
623 623
        Coordinate c2 = new Coordinate(bounds.getMaxX(), bounds.getMaxY());
624 624
        Envelope env = new Envelope(c1, c2);
625
        
626
 long t0 = System.currentTimeMillis();       
627
        List lstRecs = lyr.getSpatialIndex().query(env);
628
System.out.println((System.currentTimeMillis() - t0)+" en atacar el indice espacial");        
629
       
625
        List lstRecs = lyr.getSpatialIndex().query(env);        
630 626
		Integer idRec;
631 627
        int index;
632 628
        try {
......
655 651
                    if (bMustClone)
656 652
                        geom = geom.cloneGeometry();
657 653
                    geom.reProject(ct);
658
                }
659
  t0 = System.currentTimeMillis();                  
654
                }                 
660 655
                if (geom.intersects(rectangle))
661
                    visitor.visit(geom, index);
662
                System.out.println((System.currentTimeMillis() - t0)+" en procesar la geometria "+i);               
656
                    visitor.visit(geom, index);               
663 657
            }//for
664 658
            va.stop();
665 659
        } catch (DriverIOException e) {

Also available in: Unified diff