Revision 5226 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java
ShpStrategy.java | ||
---|---|---|
211 | 211 |
System.out.println("Tiempo en mirar el ?ndice espacial y recuperar los ?ndices:" + (t12-t11)); |
212 | 212 |
System.out.println("Numero de ?ndices:" + sc); */ |
213 | 213 |
|
214 |
SpatialCache cache = lyr.getSpatialCache();
|
|
214 |
SpatialCache cache = lyr.createSpatialCache();
|
|
215 | 215 |
// lyr.setSpatialCacheEnabled(true); |
216 | 216 |
int i; |
217 | 217 |
for (int aux = 0; aux < sc; aux++) { |
... | ... | |
264 | 264 |
{ |
265 | 265 |
if (cache.getMaxFeatures() < cache.size()) |
266 | 266 |
{ |
267 |
lyr.setSpatialCache(null); |
|
268 |
cache = null; |
|
267 |
// lyr.setSpatialCache(null);
|
|
268 |
// cache = null;
|
|
269 | 269 |
} |
270 | 270 |
else |
271 | 271 |
{ |
Also available in: Unified diff