Hi All,

I am testing GeoTools for creating shape files. I typically have to deal
with a couple million points (~1 - 3 millions). Therefore, I am looking for
a way to sequentially write features to the shape-file. I repeatedly
generate a "FeatureCollection<SimpleFeatureType, SimpleFeature> collection",
add the collection to the "FeatureStore<SimpleFeatureType, SimpleFeature>
featureStore" and call transaction.commit. It seems to me that whenever I
call transaction.commit all features in the featureStore are written to
file, as the more features I add the slower the transaction.commit. 

How can I control the process of writing features to a shape file, such that
I can sequentially add a "FeatureCollection<SimpleFeatureType,
SimpleFeature> collection" to the shape file? 

Thanks, 
Peter

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to