Examples of featureTypeStyles()


Examples of org.geotools.styling.Style.featureTypeStyles()

    public void testSpatialDefaulter() throws Exception {
        // a spatial filter in the same SRS as the geometry
        StyleBuilder sb = new StyleBuilder();
        PolygonSymbolizer ps = sb.createPolygonSymbolizer();
        Style style = sb.createStyle(ps);
        Rule rule = style.featureTypeStyles().get(0).rules().get(0);
        rule.setFilter(ff.bbox("geom", 1, 1, 4, 4, null));

        content.addLayer(new FeatureLayer(squareFS, style));

        RendererBaseTest.showRender("Spatial without CRS", renderer, TIME, bounds);
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.