write("<Style id=\"GeoServerStyle" + feature.getID()
+ "\">");
// applicable rules
for (Iterator it = ruleList.iterator(); it.hasNext();) {
Rule r = (Rule) it.next();
LOGGER.finer(new StringBuffer("applying rule: ")
.append(r.toString()).toString());
Filter filter = r.getFilter();
// if there is no filter or the filter says to do
// the feature anyways, render it
if ((filter == null) || filter.evaluate(feature)) {
doElse = false;
LOGGER.finer("processing Symobolizer ...");
Symbolizer[] symbolizers = r.getSymbolizers();
processVectorSymbolizers(feature, symbolizers,
scaleRange, featureLabel);
}
}
if (doElse) {
// rules with an else filter
LOGGER.finer("rules with an else filter");
for (Iterator it = elseRuleList.iterator(); it
.hasNext();) {
Rule r = (Rule) it.next();
Symbolizer[] symbolizers = r.getSymbolizers();
LOGGER.finer("processing Symobolizer ...");
processVectorSymbolizers(feature, symbolizers,
scaleRange, featureLabel);
}
}