Package org.geotools.filter

Examples of org.geotools.filter.LogicFilter


     
      CompareFilter cf2 = ff.createCompareFilter(FilterType.COMPARE_EQUALS);        
      cf2.addLeftValue( ff.createAttributeExpression( null, "countyl") );
      cf2.addRightValue( ff.createLiteralExpression(county));
     
      LogicFilter and1 = ff.createLogicFilter(cf1,cf2,Filter.LOGIC_AND);
     
     
      CompareFilter cf3 = ff.createCompareFilter(FilterType.COMPARE_EQUALS);        
      cf3.addLeftValue( ff.createAttributeExpression( null, "stater") );
      cf3.addRightValue( ff.createLiteralExpression(state));
     
      CompareFilter cf4 = ff.createCompareFilter(FilterType.COMPARE_EQUALS);        
      cf4.addLeftValue( ff.createAttributeExpression( null, "countyr") );
      cf4.addRightValue( ff.createLiteralExpression(county));
     
      LogicFilter and2 = ff.createLogicFilter(cf3,cf4,Filter.LOGIC_AND);
     
      LogicFilter or = ff.createLogicFilter(and1,and2,Filter.LOGIC_OR);
     
   

     
      String[] ps = new String []{"wkb_geometry","statel","countyl","stater","countyr"};
View Full Code Here

TOP

Related Classes of org.geotools.filter.LogicFilter

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.