assertEquals(1, fs.getFeatures(f).size());
}
public void testGeometryFilters() throws Exception {
OGRDataStore s = new OGRDataStore(getAbsolutePath(STATE_POP), null, null);
FeatureSource fs = s.getFeatureSource(s.getTypeNames()[0]);
// from one of the GeoServer demo requests
FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
Filter f = ff.bbox("the_geom", -75.102613, 40.212597, -72.361859,41.512517, null);
assertEquals(4, fs.getFeatures(f).size());
// mix in an attribute filter
f = ff.and(f, ff.greater(ff.property("PERSONS"), ff.literal("10000000")));
assertEquals(6, fs.getFeatures(f).size());
}