org.opengis.filter.ExcludeFilter Java Examples

The following examples show how to use org.opengis.filter.ExcludeFilter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ElasticCapabilities.java    From elasticgeo with GNU General Public License v3.0 5 votes vote down vote up
public ElasticCapabilities() {
    super(new ElasticFilterCapabilities());

    addAll(LOGICAL_OPENGIS);
    addAll(SIMPLE_COMPARISONS_OPENGIS);
    addType(PropertyIsNull.class);
    addType(PropertyIsBetween.class);
    addType(Id.class);
    addType(IncludeFilter.class);
    addType(ExcludeFilter.class);
    addType(PropertyIsLike.class);

    // spatial filters
    addType(BBOX.class);
    addType(Contains.class);
    //addType(Crosses.class);
    addType(Disjoint.class);
    //addType(Equals.class);
    addType(Intersects.class);
    //addType(Overlaps.class);
    //addType(Touches.class);
    addType(Within.class);
    addType(DWithin.class);
    addType(Beyond.class);

    //temporal filters
    addType(After.class);
    addType(Before.class);
    addType(Begins.class);
    addType(BegunBy.class);
    addType(During.class);
    addType(Ends.class);
    addType(EndedBy.class);
    addType(TContains.class);
    addType(TEquals.class);
}
 
Example #2
Source File: ElasticFilterTest.java    From elasticgeo with GNU General Public License v3.0 5 votes vote down vote up
@Test
public void testExcludeFilter() {
    ExcludeFilter filter = Filter.EXCLUDE;
    Map<String,Object> expected = ImmutableMap.of("bool", ImmutableMap.of("must_not",MATCH_ALL));

    builder.visit(filter, null);
    assertTrue(builder.createCapabilities().fullySupports(filter));
    assertEquals(expected, builder.getQueryBuilder());
}
 
Example #3
Source File: ElasticCapabilities.java    From elasticgeo with GNU General Public License v3.0 4 votes vote down vote up
public Object visit( ExcludeFilter filter, Object extraData ) {
    return true;
}
 
Example #4
Source File: ExtractGeometryFilterVisitor.java    From geowave with Apache License 2.0 4 votes vote down vote up
@Override
public Object visit(final ExcludeFilter filter, final Object data) {
  return new ExtractGeometryFilterVisitorResult(null, null);
}
 
Example #5
Source File: ExtractTimeFilterVisitor.java    From geowave with Apache License 2.0 4 votes vote down vote up
@Override
public Object visit(final ExcludeFilter filter, final Object data) {
  return new TemporalConstraints();
}
 
Example #6
Source File: CriteriaVisitor.java    From geomajas-project-server with GNU Affero General Public License v3.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override
public Object visit(ExcludeFilter filter, Object userData) {
	return Restrictions.not(Restrictions.conjunction());
}
 
Example #7
Source File: FilterToElastic.java    From elasticgeo with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Writes the FilterBuilder for the ExcludeFilter.
 * 
 * @param filter the filter to be visited
 */
public Object visit(ExcludeFilter filter, Object extraData) {
    queryBuilder = ImmutableMap.of("bool", ImmutableMap.of("must_not", MATCH_ALL));
    return extraData;
}