Hi all,

I am trying to get all features of one featuretype from a geoserver.
The connection to the server is ok. I can get all type names of the feature 
types. But after creating a FeatureReader there seem to be no features in it. 
But there should be round about 40 features. The bounding box is ok as well. 
Somebody who can help?
Here is some code.

URL url = new URL(getCapabilities);

Map m = new HashMap();
m.put(WFSDataStoreFactory.URL.key,url);
m.put(WFSDataStoreFactory.TIMEOUT.key,new Integer(10000));
m.put(WFSDataStoreFactory.PROTOCOL.key,false);

DataStore wfs = (new WFSDataStoreFactory()).createNewDataStore(m);
Query query = new DefaultQuery(wfs.getTypeNames()[0]);
FeatureReader ftr = wfs.getFeatureReader(query,Transaction.AUTO_COMMIT);

Nearly the exact example i found in the sources of gt2-2.4.0

thanks for any help

Ingo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to