if(defaultStyle == null)
return;
Rule rule = defaultStyle.rules().get(0);
// Find the first PointSymbolizer in the rule
PointSymbolizer sym = null;
for(Symbolizer symbolizer : rule.symbolizers()) {
if(symbolizer instanceof PointSymbolizer) {
sym = (PointSymbolizer)symbolizer;
break;
}
}
if(sym == null) {
SLD.POINT.createDefault();
rule.symbolizers().add(sym);
}
// IProgressMonitor monitor = new NullProgressMonitor();
// getSelectedLayer().getResource(FeatureSource.class, monitor);
Graphic g = sym.getGraphic();
Expression opacity = g.getOpacity();
Expression rotation = g.getRotation();
Expression size = g.getSize();
AnchorPoint anchor = g.getAnchorPoint();
Displacement displacement = g.getDisplacement();