use of com.sldeditor.create.sld.NewPointSLD in project sldeditor by robward-scisys.
the class NewPointSLDTest method testNewPointSLD.
/**
* Test new point sld.
*/
@Test
public void testNewPointSLD() {
NewPointSLD newData = new NewPointSLD();
StyledLayerDescriptor sld = newData.create();
assertTrue(sld.layers().size() == 1);
StyledLayer styledLayer = sld.layers().get(0);
NamedLayer namedLayer = (NamedLayer) styledLayer;
Symbolizer symbolizer = namedLayer.styles().get(0).featureTypeStyles().get(0).rules().get(0).symbolizers().get(0);
assertTrue(symbolizer instanceof PointSymbolizer);
}
use of com.sldeditor.create.sld.NewPointSLD in project sldeditor by robward-scisys.
the class NewSLDFactory method populateAvailableList.
/**
* Populate available list of SLDs.
*
* @return the list
*/
private static List<NewSLDInterface> populateAvailableList() {
List<NewSLDInterface> list = new ArrayList<NewSLDInterface>();
list.add(new NewPointSLD());
list.add(new NewLineSLD());
list.add(new NewPolygonSLD());
list.add(new NewRasterSLD());
return list;
}
Aggregations