Java Code Examples for org.opengis.filter.FilterFactory#greater()
The following examples show how to use
org.opengis.filter.FilterFactory#greater() .
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: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testGetFeaturesWithIsGreaterThanFilter() throws Exception { init(); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("speed_is"), ff.literal(300)); SimpleFeatureCollection features = featureSource.getFeatures(f); assertEquals(0, features.size()); }
Example 2
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testGetFeaturesWithIsGreaterThanFilterOnObjectType() throws Exception { init(); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("object.hejda"), ff.literal(10)); SimpleFeatureCollection features = featureSource.getFeatures(f); assertEquals(6, features.size()); }
Example 3
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testGetFeaturesWithIsGreaterThanFilterOnNestedType() throws Exception { init(); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("nested.hej"), ff.literal(10)); SimpleFeatureCollection features = featureSource.getFeatures(f); assertEquals(8, features.size()); }
Example 4
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testGetFeaturesWithIsGreaterThanFilterOnNestedChildType() throws Exception { init(); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("nested.parent.child"), ff.literal("ba")); SimpleFeatureCollection features = featureSource.getFeatures(f); assertEquals(8, features.size()); }
Example 5
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testScrollSizesDoesntChangesOutputSize() throws Exception { init(); dataStore.setScrollSize(3L); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("nested.parent.child"), ff.literal("ba")); List<SimpleFeature> features = readFeatures(featureSource.getFeatures(f).features()); assertEquals(8, features.size()); }
Example 6
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testScrollTimeDoesntChangesOutputSize() throws Exception { init(); Integer initialScrollTime = dataStore.getScrollTime(); dataStore.setScrollTime(initialScrollTime * 10); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("nested.parent.child"), ff.literal("ba")); List<SimpleFeature> features = readFeatures(featureSource.getFeatures(f).features()); assertEquals(8, features.size()); }
Example 7
Source File: ElasticFeatureFilterIT.java From elasticgeo with GNU General Public License v3.0 | 5 votes |
@Test public void testScrollEnabledDoesntChangesOutputSize() throws Exception { init(); dataStore.setScrollEnabled(true); FilterFactory ff = dataStore.getFilterFactory(); PropertyIsGreaterThan f = ff.greater(ff.property("nested.parent.child"), ff.literal("ba")); List<SimpleFeature> features = readFeatures(featureSource.getFeatures(f).features()); assertEquals(8, features.size()); }