Java Code Examples for org.opengis.filter.Filter#INCLUDE
The following examples show how to use
org.opengis.filter.Filter#INCLUDE .
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: GetFeaturesStyleStep.java From geomajas-project-server with GNU Affero General Public License v3.0 | 6 votes |
/** * Build list of style filters from style definitions. * * @param styleDefinitions * list of style definitions * @return list of style filters * @throws GeomajasException */ private List<StyleFilter> initStyleFilters(List<FeatureStyleInfo> styleDefinitions) throws GeomajasException { List<StyleFilter> styleFilters = new ArrayList<StyleFilter>(); if (styleDefinitions == null || styleDefinitions.size() == 0) { styleFilters.add(new StyleFilterImpl()); // use default. } else { for (FeatureStyleInfo styleDef : styleDefinitions) { StyleFilterImpl styleFilterImpl = null; String formula = styleDef.getFormula(); if (null != formula && formula.length() > 0) { styleFilterImpl = new StyleFilterImpl(filterService.parseFilter(formula), styleDef); } else { styleFilterImpl = new StyleFilterImpl(Filter.INCLUDE, styleDef); } styleFilters.add(styleFilterImpl); } } return styleFilters; }
Example 2
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Ends ends, final Object extraData) { if (!usesProperty(ends)) { return Filter.INCLUDE; } return super.visit(ends, extraData); }
Example 3
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsBetween filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 4
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsEqualTo filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 5
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Begins begins, final Object extraData) { if (!usesProperty(begins)) { return Filter.INCLUDE; } return super.visit(begins, extraData); }
Example 6
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Overlaps filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 7
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Beyond filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 8
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final DWithin filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 9
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsNil filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 10
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Disjoint filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 11
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Intersects filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 12
Source File: SearchAttributesCommand.java From geomajas-project-server with GNU Affero General Public License v3.0 | 5 votes |
@Override public void execute(SearchAttributesRequest request, SearchAttributesResponse response) throws Exception { String layerId = request.getLayerId(); if (null == layerId) { throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "layer"); } Filter filter = Filter.INCLUDE; if (request.getFilter() != null) { filter = filterService.parseFilter(request.getFilter()); } List<Attribute<?>> attributes = layerService.getAttributes(layerId, request.getAttributePath(), filter); response.setAttributes(attributes); }
Example 13
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Before before, final Object extraData) { if (!usesProperty(before)) { return Filter.INCLUDE; } return super.visit(before, extraData); }
Example 14
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsNotEqualTo filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 15
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final TOverlaps contains, final Object extraData) { if (!usesProperty(contains)) { return Filter.INCLUDE; } return super.visit(contains, extraData); }
Example 16
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final Meets meets, final Object extraData) { if (!usesProperty(meets)) { return Filter.INCLUDE; } return super.visit(meets, extraData); }
Example 17
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsBetween filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }
Example 18
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final BegunBy begunBy, final Object extraData) { if (!usesProperty(begunBy)) { return Filter.INCLUDE; } return super.visit(begunBy, extraData); }
Example 19
Source File: GeoWaveFeatureSourceTest.java From geowave with Apache License 2.0 | 5 votes |
public void testEmpty() throws Exception { final SimpleFeatureType type = DataUtilities.createType( "GeoWaveFeatureSourceTest_e", "geometry:Geometry:srid=4326,pop:java.lang.Long,pid:String,when:Date"); final DataStore dataStore = createDataStore(); dataStore.createSchema(type); final SimpleFeatureSource source = dataStore.getFeatureSource("GeoWaveFeatureSourceTest_e"); final ReferencedEnvelope env = source.getBounds(); assertEquals(90.0, env.getMaxX(), 0.0001); assertEquals(-180.0, env.getMinY(), 0.0001); final Query query = new Query("GeoWaveFeatureSourceTest_e", Filter.INCLUDE); assertEquals(0, source.getCount(query)); }
Example 20
Source File: PropertyIgnoringFilterVisitor.java From geowave with Apache License 2.0 | 5 votes |
@Override public Object visit(final PropertyIsNull filter, final Object extraData) { if (!usesProperty(filter)) { return Filter.INCLUDE; } return super.visit(filter, extraData); }