Package org.opengis.filter.capability

Examples of org.opengis.filter.capability.SpatialCapabilities


    }

    private FilterCapabilities createTestFilterCapabilities() {
        final String version = "1.1.0";
        final ScalarCapabilities scalarCaps;
        final SpatialCapabilities spatialCaps;
        final IdCapabilities idCaps;
        {
            Operator[] operators = { filterFac.operator("LessThan"),
                    filterFac.operator("GreaterThan") };
            ComparisonOperators comparisonOps = filterFac.comparisonOperators(operators);
View Full Code Here


            (SpatialOperators) node.getChildValue(SpatialOperators.class));
    }

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

        if ("SpatialOperators".equals(name.getLocalPart())) {
            return spatial.getSpatialOperators();
        }

        if ("GeometryOperands".equals(name.getLocalPart())) {
            return spatial.getGeometryOperands();
        }

        return null;
    }
View Full Code Here

    }

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

        SpatialCapabilities scalar = (SpatialCapabilities) parse(OGC.Spatial_CapabilitiesType);

        assertNotNull(scalar.getSpatialOperators());
    }
View Full Code Here

            (SpatialOperators) node.getChildValue(SpatialOperators.class));
    }

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

        if ("Spatial_Operators".equals(name.getLocalPart())) {
            return spatial.getSpatialOperators();
        }

        return null;
    }
View Full Code Here

    }

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

        SpatialCapabilities scalar = (SpatialCapabilities) parse(OGC.Spatial_CapabilitiesType);

        assertNotNull(scalar.getSpatialOperators());
    }
View Full Code Here

       
        return operators.getOperator( PropertyIsNil.NAME ) != null;
    }

    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

       
        return operators.getOperator( BBOX.NAME ) != null;
    }

    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

       
        return operators.getOperator( Beyond.NAME ) != null;
    }

    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

       
        return operators.getOperator( Contains.NAME ) != null;
    }

    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

       
        return operators.getOperator( Crosses.NAME ) != null;
    }

    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

TOP

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

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.