Skip navigation links
LuciadLightspeed
2023.1.08

Package com.luciad.ogc.filter.evaluator

This package provides classes to evaluate an OGC 1.0/1.1/2.0 filter.

See: Description

Package com.luciad.ogc.filter.evaluator Description

This package provides classes to evaluate an OGC 1.0/1.1/2.0 filter. This can be achieved by using the TLcdOGCFilterEvaluator class to build an ILcdFilter from a TLcdOGCFilter.

The most important classes of this package are:

The following code snippet illustrates how to evaluate a set of elements against a filter.


   List elementsToEvaluate = ...;
   TLcdOGCFilter ogcFilter = ...;

   TLcdOGCFilterEvaluator evaluator = new TLcdOGCFilterEvaluator();
   TLcdOGCFilterContext filterContext = new TLcdOGCFilterContext();

   ILcdDynamicFilter filter = evaluator.buildFilter(ogcFilter, filterContext);
   for(Object element : elementsToEvaluate){
     if(filter.accept(element)){
       //Do something
     }
   }
 

 

The developer guide contains more examples on how to create and evaluate filters.

Since:
6.1
LuciadLightspeed
2023.1.08