protected void encodePointStyle(SimpleFeature feature, Style2D style,
PointSymbolizer symbolizer) {
start("IconStyle");
if (style instanceof MarkStyle2D) {
Mark mark = SLD.mark(symbolizer);
if (mark != null) {
double opacity = ((Number)mark.getFill().getOpacity().evaluate(feature)).doubleValue();
if (Double.isNaN(opacity)) {
// default to full opacity
opacity = 1.0;
}
if (mark.getFill() != null) {
final Color color = (Color)mark.getFill().getColor().evaluate(feature, Color.class);
encodeColor(color, opacity);
}
}
}