Default Query against WFS returns no features
---------------------------------------------

                 Key: GEOT-1703
                 URL: http://jira.codehaus.org/browse/GEOT-1703
             Project: GeoTools
          Issue Type: Bug
    Affects Versions: 2.4-RC0
            Reporter: Jean-Pierre Fiset


Performing a default query against a WFS service (geoserver-1.6.0-RC3) does not 
return any feature. Here is the code:

        public final void testDataStore() throws Exception {
                Map<String, Object> m = new HashMap<String, Object>();
        
m.put(WFSDataStoreFactory.URL.key,"http://127.0.0.1:8080/geoserver-1.6.0-RC3/wfs";);
        WFSDataStore wfs = (WFSDataStore) (new 
WFSDataStoreFactory()).createNewDataStore(m);

        Query query = new DefaultQuery("kpa:sound");
        
        FeatureReader ft = wfs.getFeatureReader(query,Transaction.AUTO_COMMIT);
        long count = 0;
        while( ft.hasNext() ) {
                ft.next();
                ++count;
        }
        System.out.println("Number of features: "+count);
        }

Number of features returned: 0

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to