Package org.geotools.styling

Examples of org.geotools.styling.FeatureTypeStyle.rules()


                </Rule>
        </FeatureTypeStyle>*/
       
        FeatureTypeStyle fts = (FeatureTypeStyle) parse("example-featurestyle.xml");
        assertEquals("oceansea:Foundation", fts.getFeatureTypeName());
        assertEquals(1, fts.rules().size());
   
        Rule rule = fts.rules().get(0);
        assertEquals("main", rule.getName());
       
        assertEquals(1, rule.symbolizers().size());
View Full Code Here


       
        FeatureTypeStyle fts = (FeatureTypeStyle) parse("example-featurestyle.xml");
        assertEquals("oceansea:Foundation", fts.getFeatureTypeName());
        assertEquals(1, fts.rules().size());
   
        Rule rule = fts.rules().get(0);
        assertEquals("main", rule.getName());
       
        assertEquals(1, rule.symbolizers().size());
       
        PolygonSymbolizer sym = (PolygonSymbolizer) rule.symbolizers().get(0);
View Full Code Here

        </Rule>
        </CoverageStyle>
        */
       
        FeatureTypeStyle cs = (FeatureTypeStyle) parse("example-coveragestyle.xml");
        assertEquals(1, cs.rules().size());
        Rule rule = cs.rules().get(0);
       
        assertEquals("ChannelSelection", rule.getName());
        assertEquals("Gray channel mapping", rule.getDescription().getTitle().toString());
        assertEquals(1, rule.symbolizers().size());
View Full Code Here

        </CoverageStyle>
        */
       
        FeatureTypeStyle cs = (FeatureTypeStyle) parse("example-coveragestyle.xml");
        assertEquals(1, cs.rules().size());
        Rule rule = cs.rules().get(0);
       
        assertEquals("ChannelSelection", rule.getName());
        assertEquals("Gray channel mapping", rule.getDescription().getTitle().toString());
        assertEquals(1, rule.symbolizers().size());
       
View Full Code Here

       
        assertEquals(1, s.getFeatureTypeStyles().length);
        FeatureTypeStyle fts = s.getFeatureTypeStyles()[0];
       
        assertEquals("Foundation", fts.getFeatureTypeName());
        assertEquals(1, fts.rules().size());
       
        Rule r = fts.rules().get(0);
        assertEquals("main", r.getName());
        assertEquals(1, r.symbolizers().size());
       
View Full Code Here

        FeatureTypeStyle fts = s.getFeatureTypeStyles()[0];
       
        assertEquals("Foundation", fts.getFeatureTypeName());
        assertEquals(1, fts.rules().size());
       
        Rule r = fts.rules().get(0);
        assertEquals("main", r.getName());
        assertEquals(1, r.symbolizers().size());
       
        PolygonSymbolizer sym = (PolygonSymbolizer) r.symbolizers().get(0);
    }
View Full Code Here

        NamedLayer layer = (NamedLayer) sld.getStyledLayers()[0];
        assertEquals(1, layer.getStyles().length);
        Style style = layer.getStyles()[0];
        assertEquals(1, style.featureTypeStyles().size());
        FeatureTypeStyle fts = style.featureTypeStyles().get(0);
        assertEquals(1, fts.rules().size());
        Rule rule = fts.rules().get(0);
        assertEquals(4,  rule.symbolizers().size());
       
        // every symbolizer has the vendor option
        PolygonSymbolizer poly = (PolygonSymbolizer) rule.symbolizers().get(0);
View Full Code Here

        assertEquals(1, layer.getStyles().length);
        Style style = layer.getStyles()[0];
        assertEquals(1, style.featureTypeStyles().size());
        FeatureTypeStyle fts = style.featureTypeStyles().get(0);
        assertEquals(1, fts.rules().size());
        Rule rule = fts.rules().get(0);
        assertEquals(4,  rule.symbolizers().size());
       
        // every symbolizer has the vendor option
        PolygonSymbolizer poly = (PolygonSymbolizer) rule.symbolizers().get(0);
        assertEquals(1, poly.getOptions().size());
View Full Code Here

            if (featureTypeStyle != null) {
                /*
                 * At present this dialog just examines the very first rule and symbolizer
                 */
                if (featureTypeStyle.rules() == null || featureTypeStyle.rules().isEmpty()) {
                    return;
                }
                rule = featureTypeStyle.rules().get(0);

                if (rule.symbolizers() == null) {
View Full Code Here

            if (featureTypeStyle != null) {
                /*
                 * At present this dialog just examines the very first rule and symbolizer
                 */
                if (featureTypeStyle.rules() == null || featureTypeStyle.rules().isEmpty()) {
                    return;
                }
                rule = featureTypeStyle.rules().get(0);

                if (rule.symbolizers() == null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.