Re: [Geotools-devel] Concurrent acces on DataStore

2008-02-04 Thread Jesse Eichar
Hi, FYI, A bunch of these issues were dealt with in the TransactionStateDiff. It had these problems at one point and have since then been solved. It is a slightly more complicated problem because it is only the difference but I'd guess the principals for solving the problem are about th

Re: [Geotools-devel] Concurrent acces on DataStore

2008-02-03 Thread johann Sorel
I need a MemoryDataStore for those reasons : - I need a Geometry field, shapefile only support Point/Polygon... Only one unique type possible, I need all types - I only have one field (Geometry) and only on or two geometries in it, there's not enough features to have a important impact on perfor

Re: [Geotools-devel] Concurrent acces on DataStore

2008-02-03 Thread Andrea Aime
Andrea Aime ha scritto: > Ways to solve this problem. Quick ideas are: > * have FeatureIterator objects take a snapshot of the LinkedHashMap > contents and work on top of it. Not a deep copy btw, a shallow one > that just give the iterator its own collection that no one else will touch > * change

Re: [Geotools-devel] Concurrent acces on DataStore

2008-02-03 Thread Andrea Aime
johann Sorel ha scritto: > hello, > > I am having more and more problems with having multiple modifications on > a Datastore. > > Actually I am stuck when I try to render and edit geometry. > The fact is I can't find a way be be sure the datastore is not used > be trying to edit/render. > > I sp

[Geotools-devel] Concurrent acces on DataStore

2008-02-02 Thread johann Sorel
hello, I am having more and more problems with having multiple modifications on a Datastore. Actually I am stuck when I try to render and edit geometry. The fact is I can't find a way be be sure the datastore is not used be trying to edit/render. I spend a complete afternoon trying to avoid eac