Because you connected using WFS-1.1; and GeoTools does not support
WFS-T using 1.1.

If you add VERSION=1.0 to your capabilities URL you should be good to go.

Jody

On Thu, Apr 16, 2009 at 11:01 PM, yako yako <[email protected]> wrote:
> Hi,
>
> I don't understand why my FeaturesSources linked to a WFS-T Server
> (Geoserver) are not FeatureStores.
>
> Here is my code
>
>   Map<String, Object> connectionParameters = new HashMap<String, Object>();
>   connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL",
> "http://localhost:8090/geoserver/wfs?REQUEST=GetCapabilities";);
>   DataStore ds = DataStoreFinder.getDataStore(connectionParameters);
>   FeatureSource fs = ds.getFeatureSource("mynamespace:roads");
>   if(fs == null)
>   {
>      System.out.println("is null");
>   }
>   else if(fs instanceof FeatureStore)
>   {
>      System.out.println("is instance of FeatureStore");
>   }
>   else
>   {
>      System.out.println("is not instance of FeatureStore");
>   }
>
> It displays "is not instance of FeatureStore".
>
> Can somebody helps me?
>
> Thank you,
>
> Yako Bak
>
> ________________________________
> Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile
> !
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to