Package org.geotools.renderer.style

Examples of org.geotools.renderer.style.SLDStyleFactory.createStyle()


            pathIterator.currentSegment(point);

            SLDStyleFactory styleFactory = new SLDStyleFactory();
            Style2D tmp = null;
            try {
                tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Double.class, Double.NEGATIVE_INFINITY,
                        Double.POSITIVE_INFINITY));
            } catch (Exception e) {
                PointSymbolizerWrapper tmpPs = new PointSymbolizerWrapper(pointSymbolizer, null);
                tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Double.class, Double.NEGATIVE_INFINITY,
                        Double.POSITIVE_INFINITY));
View Full Code Here


            try {
                tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Double.class, Double.NEGATIVE_INFINITY,
                        Double.POSITIVE_INFINITY));
            } catch (Exception e) {
                PointSymbolizerWrapper tmpPs = new PointSymbolizerWrapper(pointSymbolizer, null);
                tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Double.class, Double.NEGATIVE_INFINITY,
                        Double.POSITIVE_INFINITY));
            }
            if (tmp instanceof MarkStyle2D) {
                MarkStyle2D style = (MarkStyle2D) tmp;
                Shape shape2 = style.getTransformedShape(point[0], point[1]);
View Full Code Here

            if (width < 1)
                width = 1;
            float[] point = new float[6];
            shape.getPathIterator(null).currentSegment(point);
            SLDStyleFactory styleFactory = new SLDStyleFactory();
            Style2D tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Integer.class, 0, imgH));

            if (tmp instanceof MarkStyle2D) {

                MarkStyle2D style = (MarkStyle2D) tmp;
                style.setSize(imgH / 2);
View Full Code Here

            Color fill=SLDs.pointFillWithAlpha( pointSymbolizer );
            int width = SLDs.width(SLDs.stroke(pointSymbolizer));
            float[] point=new float[6];
            shape.getPathIterator(null).currentSegment(point);
            SLDStyleFactory styleFactory=new SLDStyleFactory();
             Style2D tmp = styleFactory.createStyle(feature, pointSymbolizer, new NumberRange(Double.class, Double.MIN_VALUE, Double.MAX_VALUE));
           
             if( tmp instanceof MarkStyle2D ){
                MarkStyle2D style=(MarkStyle2D) tmp;
                Shape shape2 = style.getTransformedShape(point[0], point[1]);
View Full Code Here

                width =1;
           
            float[] point=new float[6];
            shape.getPathIterator(null).currentSegment(point);
            SLDStyleFactory styleFactory=new SLDStyleFactory();
            Style2D tmp = styleFactory.createStyle(feature, pointSymbolizer, NumberRange.create(Double.MIN_VALUE, Double.MAX_VALUE));
            if( tmp instanceof MarkStyle2D ){
                MarkStyle2D style=(MarkStyle2D) tmp;
                Shape shape2 = style.getTransformedShape(point[0], point[1]);
View Full Code Here

       
                                        symbolizer = pointSymbolizer;
                                    }
                                }
                               
                                Style2D style2d = styleFactory.createStyle(sample,
                                        symbolizer, scaleRange);
                                LiteShape2 shape = getSampleShape(symbolizer, w, h);
       
                                if (style2d != null) {
                                    shapePainter.paint(graphics, shape, style2d,
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.