Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Expression.evaluate()


            Expression styleExpression = font.getStyle();
            fontStyle = styleExpression.evaluate(null, String.class);

            Expression styleWeight = font.getWeight();
            fontWeight = styleWeight.evaluate(null, String.class);

            Expression styleSize = font.getSize();
            fontSize = styleSize.evaluate(null, String.class);
        }
View Full Code Here


            Expression styleWeight = font.getWeight();
            fontWeight = styleWeight.evaluate(null, String.class);

            Expression styleSize = font.getSize();
            fontSize = styleSize.evaluate(null, String.class);
        }

        fill = textSymbolizer.getFill();
        if (fill != null) {
            Expression colorExpression = fill.getColor();
View Full Code Here

        }

        fill = textSymbolizer.getFill();
        if (fill != null) {
            Expression colorExpression = fill.getColor();
            color = colorExpression.evaluate(null, String.class);
            Expression opacityExpression = fill.getOpacity();
            if (opacityExpression != null) {
                opacity = expressionToString(opacityExpression);
            }
        }
View Full Code Here

        halo = textSymbolizer.getHalo();
        if (halo != null) {
            haloFill = halo.getFill();
            Expression haloColorExpression = haloFill.getColor();
            haloColor = haloColorExpression.evaluate(null, String.class);

            Expression haloRadiusExpression = halo.getRadius();
            haloRadius = haloRadiusExpression.evaluate(null, String.class);
        }
View Full Code Here

            haloFill = halo.getFill();
            Expression haloColorExpression = haloFill.getColor();
            haloColor = haloColorExpression.evaluate(null, String.class);

            Expression haloRadiusExpression = halo.getRadius();
            haloRadius = haloRadiusExpression.evaluate(null, String.class);
        }

        LabelPlacement labelPlacement = textSymbolizer.getLabelPlacement();
        if (geomType != null) {
            switch( geomType ) {
View Full Code Here

                    pointPlacement = (PointPlacement) labelPlacement;
                    if (pointPlacement != null) {
                        anchorPoint = pointPlacement.getAnchorPoint();
                        if (anchorPoint != null) {
                            Expression anchorPointXExpression = anchorPoint.getAnchorPointX();
                            anchorX = anchorPointXExpression.evaluate(null, String.class);
                            Expression anchorPointYExpression = anchorPoint.getAnchorPointY();
                            anchorY = anchorPointYExpression.evaluate(null, String.class);
                        }

                        displacement = pointPlacement.getDisplacement();
View Full Code Here

                        anchorPoint = pointPlacement.getAnchorPoint();
                        if (anchorPoint != null) {
                            Expression anchorPointXExpression = anchorPoint.getAnchorPointX();
                            anchorX = anchorPointXExpression.evaluate(null, String.class);
                            Expression anchorPointYExpression = anchorPoint.getAnchorPointY();
                            anchorY = anchorPointYExpression.evaluate(null, String.class);
                        }

                        displacement = pointPlacement.getDisplacement();
                        if (displacement != null) {
                            Expression displacementXExpression = displacement.getDisplacementX();
View Full Code Here

                        }

                        displacement = pointPlacement.getDisplacement();
                        if (displacement != null) {
                            Expression displacementXExpression = displacement.getDisplacementX();
                            displacementX = displacementXExpression.evaluate(null, String.class);
                            Expression displacementYExpression = displacement.getDisplacementY();
                            displacementY = displacementYExpression.evaluate(null, String.class);
                        } else {
                            displacementX = "0.0"; //$NON-NLS-1$
                            displacementY = "0.0"; //$NON-NLS-1$
View Full Code Here

                        displacement = pointPlacement.getDisplacement();
                        if (displacement != null) {
                            Expression displacementXExpression = displacement.getDisplacementX();
                            displacementX = displacementXExpression.evaluate(null, String.class);
                            Expression displacementYExpression = displacement.getDisplacementY();
                            displacementY = displacementYExpression.evaluate(null, String.class);
                        } else {
                            displacementX = "0.0"; //$NON-NLS-1$
                            displacementY = "0.0"; //$NON-NLS-1$
                        }
View Full Code Here

                if (labelPlacement instanceof LinePlacement) {
                    linePlacement = (LinePlacement) labelPlacement;
                    if (linePlacement != null) {
                        Expression initialGapExpression = linePlacement.getInitialGap();
                        if (initialGapExpression != null)
                            initialGap = initialGapExpression.evaluate(null, String.class);

                        Expression perpendicularOffsetExpression = linePlacement.getPerpendicularOffset();
                        if (perpendicularOffset != null)
                            perpendicularOffset = perpendicularOffsetExpression.evaluate(null, String.class);
                    }
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.