Search in sources :

Example 1 with NewPointSLD

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);
}
Also used : NewPointSLD(com.sldeditor.create.sld.NewPointSLD) PointSymbolizer(org.geotools.styling.PointSymbolizer) StyledLayerDescriptor(org.geotools.styling.StyledLayerDescriptor) StyledLayer(org.geotools.styling.StyledLayer) NamedLayer(org.geotools.styling.NamedLayer) Symbolizer(org.geotools.styling.Symbolizer) PointSymbolizer(org.geotools.styling.PointSymbolizer) Test(org.junit.Test)

Example 2 with NewPointSLD

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;
}
Also used : NewPointSLD(com.sldeditor.create.sld.NewPointSLD) NewRasterSLD(com.sldeditor.create.sld.NewRasterSLD) NewSLDInterface(com.sldeditor.create.sld.NewSLDInterface) NewPolygonSLD(com.sldeditor.create.sld.NewPolygonSLD) ArrayList(java.util.ArrayList) NewLineSLD(com.sldeditor.create.sld.NewLineSLD)

Aggregations

NewPointSLD (com.sldeditor.create.sld.NewPointSLD)2 NewLineSLD (com.sldeditor.create.sld.NewLineSLD)1 NewPolygonSLD (com.sldeditor.create.sld.NewPolygonSLD)1 NewRasterSLD (com.sldeditor.create.sld.NewRasterSLD)1 NewSLDInterface (com.sldeditor.create.sld.NewSLDInterface)1 ArrayList (java.util.ArrayList)1 NamedLayer (org.geotools.styling.NamedLayer)1 PointSymbolizer (org.geotools.styling.PointSymbolizer)1 StyledLayer (org.geotools.styling.StyledLayer)1 StyledLayerDescriptor (org.geotools.styling.StyledLayerDescriptor)1 Symbolizer (org.geotools.styling.Symbolizer)1 Test (org.junit.Test)1