Revision 741 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.spatialjoin/src/main/java/org/gvsig/geoprocess/algorithm/spatialjoin/SpatiallyIndexedSpatialJoinOperation.java

View differences:

SpatiallyIndexedSpatialJoinOperation.java
106 106
			FeatureSet featSetMatch = index.getMatchFeatureSet(rect);
107 107
			FeatureSet featSetNearest = index.getNearestFeatureSet(numOfNeighbours, rect);
108 108
			double nearestDistance = Double.MAX_VALUE;
109
            DisposableIterator it = featSetMatch.iterator();
109
            Iterator it = featSetMatch.iterator();
110 110

  
111 111
            //Recorremos el featSetMatch para calcular la nearestDistance
112 112
            while(it.hasNext()) {
......
137 137
                    }
138 138
                }
139 139
            }
140
            it.dispose();
140
//            it.dispose();
141 141

  
142 142
            //Recorremos el featSetNearest para calcular la nearestDistance
143 143
            it = featSetNearest.iterator();
......
169 169
                    }
170 170
                }
171 171
            }
172
            it.dispose();
172
//            it.dispose();
173 173

  
174 174
            //Recorremos el featSetMatch para obtener las geometr?as que est?n a una distancia igual o menor a la nearestDistance
175 175

  
......
206 206
                    }
207 207
                }
208 208
            }
209
            it.dispose();
209
//            it.dispose();
210 210

  
211 211

  
212 212
            //Recorremos el featSetNearest para obtener las geometr?as que est?n a una distancia igual o menor a la nearestDistance
......
248 248
                        }
249 249
                    }
250 250
                }
251
                it.dispose();
251
//                it.dispose();
252 252
            }
253 253

  
254 254
		} catch(FeatureIndexException e) {

Also available in: Unified diff