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

_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx
------------------------------------------------------------------------------
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