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 :)
--
Diego Guidi
http://lacorrente.blogspot.com è il mio blog personale...
http://blogs.ugidotnet.org/GisSharpBlog è il mio blog tecnico...
http://nts.sourceforge.net è la mia NetTopologySuite...
-------------------------------------------------------------------------
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