// Lines
if (!lineStyles.isEmpty()) {
Iterator<LineSymbolizer> iter = lineStyles.iterator();
while (iter.hasNext()) {
LineSymbolizer sym = (LineSymbolizer) iter.next();
try {
LineStyle2D style = (LineStyle2D) styleFactory.createStyle(feature,
sym, scaleRange);
encodeLineStyle(feature, style, sym);
} catch (IllegalArgumentException iae) {
LOGGER.fine(iae.getMessage() + " for " + sym.toString());
}
}
}
// Polygons
if (!polyStyles.isEmpty()) {
Iterator<PolygonSymbolizer> iter = polyStyles.iterator();
while (iter.hasNext()) {
PolygonSymbolizer sym = (PolygonSymbolizer) iter.next();
try {
PolygonStyle2D style = (PolygonStyle2D) styleFactory.createStyle(
feature, sym, scaleRange);
// The last argument is forced outline
encodePolygonStyle(feature, style, sym, !lineStyles.isEmpty());
} catch (IllegalArgumentException iae) {
LOGGER.fine(iae.getMessage() + " for " + sym.toString());
}
}
}
} catch (Exception e) {