Package org.geotools.filter.capability

Examples of org.geotools.filter.capability.SpatialOperatorsImpl


    public Functions functions(FunctionName[] functionNames) {
        return new FunctionsImpl( functionNames );
    }
   
    public SpatialOperators spatialOperators(SpatialOperator[] spatialOperators) {
        return new SpatialOperatorsImpl( spatialOperators );
    }
View Full Code Here


    public void addName( String name ){
        if( name == null ){
            return;
        }
        else if( spatialNames.containsValue( name )){
            SpatialOperatorsImpl operators = contents.getSpatialCapabilities().getSpatialOperators();
            if( operators.getOperator( name ) == null ){
                SpatialOperatorImpl operator = new SpatialOperatorImpl(name);
                // default JTS?
                operator.getGeometryOperands().add( GeometryOperand.LineString );
                operator.getGeometryOperands().add( GeometryOperand.Point );
                operator.getGeometryOperands().add( GeometryOperand.Polygon );
               
                operators.getOperators().add( operator );
            }
        }
        else if( scalarNames.containsValue( name )){
            ComparisonOperatorsImpl operators = contents.getScalarCapabilities().getComparisonOperators();
            if( operators.getOperator( name ) == null ){
                OperatorImpl operator = new OperatorImpl( name );               
                operators.getOperators().add( operator );
            }
        }
        else if( arithmaticNames.containsValue( name )){
            ArithmeticOperatorsImpl operators = contents.getScalarCapabilities().getArithmeticOperators();
            operators.setSimpleArithmetic(true);
        }
        else if( logicalNames.containsValue( name )){
            contents.getScalarCapabilities().setLogicalOperators(true);
        }
        else if( "Id".equals(name)){
View Full Code Here

    public SpatialOperatorsImpl getSpatialOperators() {
        synchronized(spatialOperands)
        {
            if (spatialOperands == null || spatialOperands.getOperators() == null || spatialOperands.getOperators().size() == 0)
            {
                spatialOperands = new SpatialOperatorsImpl();
               
                for (SpatialOperator operator : spatialOperators)
                {
                    if(((SpatialOperatorsImpl)spatialOperands).getOperators() == null)
                    {
View Full Code Here

TOP

Related Classes of org.geotools.filter.capability.SpatialOperatorsImpl

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.