Examples of BinarySpatialOperator


Examples of org.opengis.filter.spatial.BinarySpatialOperator

            List<Filter> otherFilters = new ArrayList<Filter>();
            List<Filter> children = ((Or) simplified).getChildren();
            for (Filter child : children) {
                // we know how to merge only bbox and intersects for the moment
                if(child instanceof BinarySpatialOperator) {
                    BinarySpatialOperator bso = (BinarySpatialOperator) child;
                    String name = null;
                    SpatialOperation so = null;
                    if(bso.getExpression1() instanceof PropertyName && bso.getExpression2() instanceof Literal) {
                        name = ((PropertyName) bso.getExpression1()).getPropertyName();
                        so = new SpatialOperation(bso);
                    } else if(bso.getExpression2() instanceof PropertyName && bso.getExpression1() instanceof Literal) {
                        name = ((PropertyName) bso.getExpression2()).getPropertyName();
                        so = new SpatialOperation(bso);
                    }
                   
                    if(name != null && so != null) {
                        // handle the default geometry case
View Full Code Here

Examples of org.opengis.filter.spatial.BinarySpatialOperator

        final Geometry geom = literal.evaluate(null, Geometry.class);
        final double distance = filter.getDistance();
        final Geometry buffer = geom.buffer(distance);

        FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
        BinarySpatialOperator intersects = ff.intersects(property, ff.literal(buffer));

        addSpatialFilter(intersects, SeFilter.METHOD_II_OR_ET, truth, extraData);

        return extraData;
    }
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.