Here is the "update" instructions .... (that includes just this example)
- http://docs.codehaus.org/display/GEOTOOLS/Upgrade+to+2.3

Here is a page with example code:
- http://docs.codehaus.org/display/GEOTDOC/02+Example
> In a code like this:
> ShapefileDataStore store = new ShapefileDataStore(url);                       
> String name = store.getTypeNames()[0];
> FeatureSource source = store.getFeatureSource(name);  
> FeatureReader reader = features.reader();     
> try
> {
> while (reader.hasNext())
> {
> // ...
> }
> }
> finally
> {
> reader.close();
> }
> This line is deprecated:
> FeatureReader reader = features.reader();     
>
> and is suggested to use Featurecollections for the same purposes, but...
> how to create a new not wmpty feature collection using FeatureCollections 
> class?
> Thanks for support :)
>
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to