Package org.opengis.filter

Examples of org.opengis.filter.PropertyIsNull.evaluate()


    public void testNull() throws IllegalFilterException {
        // Test for false positive.
        PropertyName testAttribute = new AttributeExpressionImpl(testSchema, "testString");

        PropertyIsNull filter = fac.isNull(org.opengis.filter.expression.Expression.NIL);
        assertTrue(filter.evaluate(testFeature));
       
        filter = fac.isNull(testAttribute);
        assertFalse(filter.evaluate(testFeature));
    }
   
View Full Code Here


        PropertyIsNull filter = fac.isNull(org.opengis.filter.expression.Expression.NIL);
        assertTrue(filter.evaluate(testFeature));
       
        filter = fac.isNull(testAttribute);
        assertFalse(filter.evaluate(testFeature));
    }
   
   
    /**
         * A filter is composed of a logic AND bettween a non null check and
View Full Code Here

           
           
            testFeature.setAttribute("testInteger", null);
            assertEquals( false, compareFilter.evaluate( testFeature ) );
           
            assertTrue(nullFilter.evaluate(testFeature));
            assertFalse(notNullFilter.evaluate(testFeature));
           
            //test AND
            org.opengis.filter.Filter finalFilter = fac.and(notNullFilter, compareFilter);
            try{
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.