Cool :-) You can cast the result of the FactroryFinder if you want; I am not aware of the WFSDataStore having any interesting methods beyond those defined by the DataStore api. You should be able to access the FeatureType information; make spatial queries and so on. Currently we only support WFS 1.0 (and GML2); supporting more will require changes to our Feature Model (to bring it in line with GML3).
Cheeers, Jody > Jody, > > I am trying the WFS support in geotools these days, and found the > DataStore and WFSDataStore to use. So just curious why I can not get a > WFSDataStore instance from anywhere. > > On 1/10/07, Jody Garnett <[EMAIL PROTECTED]> wrote: >> Yingqi Tang wrote: >> > Jody, >> > >> > Thanks for your response. All I get from the example and presentation >> > is DataStore instance from WFSDataStoreFactory instead of WFSDataStore >> > instance. Is there any way to get a WFSDataStore instance? The >> > constructor is protected for some reason. >> > >> > Any idea? >> Going in through the WFSDataStoreFactory lets the module provider >> control what instance they give you; this >> will be more important when WFS 1.1 support is available (indeed we made >> use of this in our OWS3 project >> in order to support both versions). >> >> In general using the DataStoreFactoryFinder let's you write code that is >> not specific to a give source of data. >> >> Yingqi what are you trying to accomplish here? Are you hoping to rip >> WFSDataStore appart and see how it >> ticks? Or do you just want to use it.... >> >> Jody >> >> > >> > Thanks, >> > Yingqi >> > >> > On 1/9/07, Jody Garnett <[EMAIL PROTECTED]> wrote: >> >> There is a presentation on just that here: >> >> - http://docs.codehaus.org/display/GEOTDOC/02+Example >> >> >> >> The page has links to sample code. >> >> Jody >> >> > I saw the example to retrieve WFS features through DataStore, >> but also >> >> > saw there is a class WFSDataStore. It seems like I could also use >> >> > WFSDataStore instance to get the WFs feature information but how >> can I >> >> > create a WFSDataStore or where should I get it from? >> >> > >> >> > Thanks, >> >> > Yingqi >> >> > >> >> > >> >> >> ------------------------------------------------------------------------- >> >> >> >> >> > Take Surveys. Earn Cash. Influence the Future of IT >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to >> >> share your >> >> > opinions on IT & business topics through brief surveys - and >> earn cash >> >> > >> >> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >> >> >> > _______________________________________________ >> >> > Geotools-gt2-users mailing list >> >> > [email protected] >> >> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
