Revision 41828 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/impl/AbstractVectorialLegend.java
AbstractVectorialLegend.java | ||
---|---|---|
228 | 228 |
} else { |
229 | 229 |
featureSet = featureStore.getFeatureSet(feat_query); |
230 | 230 |
} |
231 |
boolean nullGeomFound = false; |
|
232 | 231 |
it = featureSet.fastIterator(); |
233 | 232 |
// Iteration over each feature |
234 | 233 |
while (!cancel.isCanceled() && it.hasNext()) { |
235 | 234 |
Feature feat = (Feature) it.next(); |
236 | 235 |
Geometry geom = feat.getDefaultGeometry(); |
237 | 236 |
if (geom==null) { |
238 |
if (!nullGeomFound) { |
|
239 |
// warn if null geometries are found, but only once for the whole loop |
|
240 |
nullGeomFound = true; |
|
241 |
LOG.info("Found null geometries while painting."); |
|
242 |
} |
|
243 | 237 |
continue; |
244 | 238 |
} |
245 | 239 |
// Reprojection if needed |
Also available in: Unified diff