From: Roy B. <roy...@b3...> - 2009-01-27 13:40:30
|
Hi list, I've got a question about the WFSDatastore (1.1.0). If i do this: Map params = new HashMap(); params.put(WFSDataStoreFactory.URL.key, "http://WFSServer_Url.org?Request=GetCapabilities&Service=WFS"); WFSDataStore wds= (WFSDataStore) DataStoreFinder.getDataStore(params); wds.setMaxFeatures(25); WFSFeatureSource fs=(WFSFeatureSource)wds.getFeatureSource("cities"); FilterFactory ff = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints()); Filter f=ff.like(ff.property("city"), "amster*","*","?","\\"); //Filter f= ff.equal(ff.property("city"),ff.literal("amsterdam"),false); FeatureCollection fc=fs.getFeatures(f); FeatureIterator fi =fc.features(); Geotools sends a getFeature Request with a empty filter tag (so its a invalid request) What am i doing wrong? The .equal filter works fine. tav, Roy |