Revision 47662
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/SpatialCache.java | ||
---|---|---|
223 | 223 |
Geometry geom = feat.getDefaultGeometry(); |
224 | 224 |
insert(geom.getEnvelope(), geom); |
225 | 225 |
status.incrementCurrentValue(); |
226 |
if(status.getCurValue()>getMaxFeatures()){ |
|
227 |
status.terminate(); |
|
228 |
throw new VisitCanceledException(); |
|
229 |
} |
|
226 | 230 |
}); |
227 | 231 |
|
228 | 232 |
status.terminate(); |
233 |
} catch (VisitCanceledException ex) { |
|
234 |
//Do nothing |
|
229 | 235 |
} catch (Exception ex) { |
230 | 236 |
logger.warn("Can't refresh spatial cache of '"+name+"'", ex); |
231 | 237 |
status.abort(); |
Also available in: Unified diff