This class hosts a collection of instances implementing IFilter.
Inheritance: IFilter
Example #1
0
 /// <summary>
 /// This method adds an instance of <see cref="OGCFilterCollection"/>.
 /// </summary>
 /// <param name="filterCollection"></param>
 public void AddFilterCollection(OGCFilterCollection filterCollection)
 {
     if (!ReferenceEquals(filterCollection, this))
     {
         _filters.Add(filterCollection);
     }
 }
Example #2
0
 /// <summary>
 /// This method adds an instance of <see cref="OGCFilterCollection"/>.
 /// </summary>
 /// <param name="filterCollection"></param>
 public void AddFilterCollection(OGCFilterCollection filterCollection)
 {
     if (!ReferenceEquals(filterCollection, this))
         _filters.Add(filterCollection);
 }
Example #3
0
 private static OGCFilterCollection CreateStatesAndHouseholdsFilter()
 {
     var californiaAndVermont = new OGCFilterCollection();
     californiaAndVermont.AddFilter(new PropertyIsEqualToFilter_FE1_1_0("STATE_NAME", "California"));
     californiaAndVermont.AddFilter(new PropertyIsEqualToFilter_FE1_1_0("STATE_NAME", "Vermont"));
     californiaAndVermont.Junctor = OGCFilterCollection.JunctorEnum.Or;
     IFilter householdSizeFilter = new PropertyIsBetweenFilter_FE1_1_0("HOUSHOLD", "600000", "4000000");
     var stateAndStatesAndHouseholdsFilter = new OGCFilterCollection();
     stateAndStatesAndHouseholdsFilter.AddFilter(householdSizeFilter);
     stateAndStatesAndHouseholdsFilter.AddFilter(californiaAndVermont);
     stateAndStatesAndHouseholdsFilter.Junctor = OGCFilterCollection.JunctorEnum.Or;
     return stateAndStatesAndHouseholdsFilter;
 }