use of com.sldeditor.create.sld.NewPolygonSLD in project sldeditor by robward-scisys.
the class NewPolygonSLDTest method testNewPolygonSLD.
/**
* Test new polygon sld.
*/
@Test
public void testNewPolygonSLD() {
NewPolygonSLD newData = new NewPolygonSLD();
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 PolygonSymbolizer);
}
use of com.sldeditor.create.sld.NewPolygonSLD 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<>();
list.add(new NewPointSLD());
list.add(new NewLineSLD());
list.add(new NewPolygonSLD());
list.add(new NewRasterSLD());
return list;
}
Aggregations