Hi,

The shapefile system is in need of some work that I plan on doing at some point in the future. The problem is that when the datastore was written it did not use the mechanism for deleting records that is built into the spec where you can null out a geometry indicated it was deleted. So there is a funny mechanism that for each change the file is written to a temporary file and then copied back (or moved) to the original location. There is nothing to be done about this until this issue is fixed. I plan on doing it but I have no time line as of yet. At least not with some pretty nasty hacking and completely going around the Datastore API to access the low level methods.

Jesse


On 18-Dec-08, at 9:03 AM, Peter Friess wrote:

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

------------------------------------------------------------------------------
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