Revision 37951 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/VectorialAdapter.java
VectorialAdapter.java | ||
---|---|---|
209 | 209 |
boolean fastIteration) throws ReadDriverException{ |
210 | 210 |
if(spatialIndex != null){ |
211 | 211 |
try { |
212 |
if(isSpatialIndexNecessary(rect)) |
|
213 |
return new IndexedSptQueryFeatureIterator(this, projection, newProjection, fields, rect, spatialIndex, fastIteration); |
|
212 |
if(isSpatialIndexNecessary(rect)) { |
|
213 |
IndexedSptQueryFeatureIterator it = new IndexedSptQueryFeatureIterator(this, projection, newProjection, fields, rect, spatialIndex, fastIteration); |
|
214 |
if (it == null) { |
|
215 |
setSpatialIndex(null); |
|
216 |
} |
|
217 |
else |
|
218 |
return it; |
|
219 |
} |
|
214 | 220 |
} catch (ExpansionFileReadException e) { |
215 | 221 |
e.printStackTrace(); |
216 | 222 |
throw new ReadDriverException("Error al iterar la capa", e); |
217 | 223 |
} |
224 |
catch (Exception e) { |
|
225 |
e.printStackTrace(); |
|
226 |
setSpatialIndex(null); |
|
227 |
} |
|
228 |
|
|
218 | 229 |
}//if |
219 | 230 |
return new SpatialQueryFeatureIterator(this, projection, newProjection, fields, rect, fastIteration); |
220 | 231 |
|
Also available in: Unified diff