Diego:
I am including some code that reads a shape file that includes no
deprecated classes. Hopefully, it helps you get around the problem you
are having. Please let me know if you have more problems and maybe I can
help.
Regards,
Amy
Diego Guidi wrote:
> 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