Hello,
I want to read a large Shapefile(3.000.000 lines) but I get a "out of
memory" Exception.
Is there another way to get the features from the Shapefile without storing
the whole file in the memory?
My Code:
ds = new ShapefileDataStore(file.toURL());
fs = ds.getFeatureSource(); //--> Here the Exception is thrown!
coll = fs.getFeatures();
FeatureIterator it = coll.features();
for (int i = 0; i < coll.size(); i++) {
Feature f = it.next();
//...
}
--
View this message in context:
http://www.nabble.com/Large-Shapefile-tf4521549.html#a12898539
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users