Package org.opengis.filter.capability

Examples of org.opengis.filter.capability.SpatialOperators


        assertTrue(fc.getIdCapabilities().hasEID());
        assertTrue(fc.getIdCapabilities().hasFID());

        assertEquals(4, fc.getSpatialCapabilities().getGeometryOperands().size());

        SpatialOperators spatial = (SpatialOperators) fc.getSpatialCapabilities()
                .getSpatialOperators();
        assertEquals(10, spatial.getOperators().size());
        assertNotNull(spatial.getOperator("BBOX"));
        assertNotNull(spatial.getOperator("Intersects"));
    }
View Full Code Here


        {
            GeometryOperand[] geomOperands = { GeometryOperand.Envelope, GeometryOperand.Point };
            String name = "Disjoint";
            GeometryOperand[] operands = {};
            SpatialOperator[] spatialOps = { filterFac.spatialOperator(name, operands) };
            SpatialOperators spatialOperators = filterFac.spatialOperators(spatialOps);
            spatialCaps = filterFac.spatialCapabilities(geomOperands, spatialOperators);
        }
        {
            boolean eid = true;
            boolean fid = true;
View Full Code Here

    }

    public void testParse() throws Exception {
        FilterMockData.spatial(document, document);

        SpatialOperators spatial = (SpatialOperators) parse(OGC.SpatialOperatorsType);

        assertNotNull(spatial.getOperator("BBOX"));
        assertNotNull(spatial.getOperator("Equals"));
        assertNotNull(spatial.getOperator("Disjoint"));
        assertNotNull(spatial.getOperator("Intersect"));
        assertNotNull(spatial.getOperator("Touches"));
        assertNotNull(spatial.getOperator("Crosses"));
        assertNotNull(spatial.getOperator("Within"));
        assertNotNull(spatial.getOperator("Contains"));
        assertNotNull(spatial.getOperator("Overlaps"));
        assertNotNull(spatial.getOperator("Beyond"));
        assertNotNull(spatial.getOperator("DWithin"));
    }
View Full Code Here

                new SpatialOperator[sops.size()]));
    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        SpatialOperators sops = (SpatialOperators) object;

        if ("SpatialOperator".equals(name.getLocalPart())) {
            return sops.getOperators();
        }

        return null;
    }
View Full Code Here

                new SpatialOperator[ops.size()]));
    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        SpatialOperators spatial = (SpatialOperators) object;

        return spatial.getOperator(name.getLocalPart());
    }
View Full Code Here

    }

    public void testParse() throws Exception {
        FilterMockData.spatial(document, document);

        SpatialOperators spatial = (SpatialOperators) parse(OGC.Spatial_OperatorsType);

        assertNotNull(spatial.getOperator("BBOX"));
        assertNotNull(spatial.getOperator("Equals"));
        assertNotNull(spatial.getOperator("Disjoint"));
        assertNotNull(spatial.getOperator("Intersect"));
        assertNotNull(spatial.getOperator("Touches"));
        assertNotNull(spatial.getOperator("Crosses"));
        assertNotNull(spatial.getOperator("Within"));
        assertNotNull(spatial.getOperator("Contains"));
        assertNotNull(spatial.getOperator("Overlaps"));
        assertNotNull(spatial.getOperator("Beyond"));
        assertNotNull(spatial.getOperator("DWithin"));
    }
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

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.