Package org.opengis.filter.capability

Examples of org.opengis.filter.capability.SpatialOperators


        assertEquals(4, geoms.size());
        assertTrue(geoms.contains(GeometryOperand.Envelope));
        assertTrue(geoms.contains(GeometryOperand.Polygon));
        assertTrue(geoms.contains(GeometryOperand.LineString));
        assertTrue(geoms.contains(GeometryOperand.Point));
        SpatialOperators sop = spatial.getSpatialOperators();
        assertEquals(11, sop.getOperators().size());
        assertNotNull(sop.getOperator("Crosses"));
        assertNotNull(sop.getOperator("Overlaps"));
        assertNotNull(sop.getOperator("BBOX"));
        assertNotNull(sop.getOperator("Touches"));
        assertNotNull(sop.getOperator("Intersects"));
        assertNotNull(sop.getOperator("Equals"));
        assertNotNull(sop.getOperator("Within"));
        assertNotNull(sop.getOperator("Contains"));
        assertNotNull(sop.getOperator("DWithin"));
        assertNotNull(sop.getOperator("Beyond"));
        ScalarCapabilities scalar = filterCapabilities.getScalarCapabilities();
        assertTrue(scalar.hasLogicalOperators());
        ComparisonOperators comparison = scalar.getComparisonOperators();
        assertEquals(9, comparison.getOperators().size());
        assertNotNull(comparison.getOperator("NullCheck"));
View Full Code Here


    public Object visit( BBOX filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( BBOX.NAME ) != null;
    }
View Full Code Here

    public Object visit( Beyond filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Beyond.NAME ) != null;
    }
View Full Code Here

    public Object visit( Contains filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Contains.NAME ) != null;
    }
View Full Code Here

    public Object visit( Crosses filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Crosses.NAME ) != null;
    }
View Full Code Here

    public Object visit( Disjoint filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Disjoint.NAME ) != null;
    }
View Full Code Here

    public Object visit( DWithin filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( DWithin.NAME ) != null;
    }
View Full Code Here

    public Object visit( Equals filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Equals.NAME ) != null;
    }
View Full Code Here

    public Object visit( Intersects filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Intersects.NAME ) != null;
    }
View Full Code Here

    public Object visit( Overlaps filter, Object extraData ) {
        SpatialCapabilities spatial = capabilities.getSpatialCapabilities();
        if( spatial == null ) return false;
       
        SpatialOperators operators = spatial.getSpatialOperators();
        if( operators == null ) return false;
       
        return operators.getOperator( Overlaps.NAME ) != null;
    }
View Full Code Here

TOP

Related Classes of org.opengis.filter.capability.SpatialOperators

Copyright © 2018 www.massapicom. 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.