Hello,
I'm encoutering a problem while using Transactions for InMemoryLayers.
My program adds and removes geometries in differents InMemoryLayer. The layer I use is open, the a transaction is begun, then my objects are added with the EditTools methods, then the transaction is commited, and then the layer is closed.
Not always, but I get often the following exception :
Cannot insert items into an STR packed R-tree after it has been built.
bei GisSharpBlog.NetTopologySuite.Utilities.Assert.IsTrue(Boolean assertion, String message)
bei GisSharpBlog.NetTopologySuite.Index.Strtree.AbstractSTRtree.Insert(Object bounds, Object item)
bei GisSharpBlog.NetTopologySuite.Index.Strtree.STRtree.Insert(IEnvelope itemEnv, Object item)
bei ThinkGeo.MapSuite.Core.InMemoryFeatureSource.BuildIndex()
bei ThinkGeo.MapSuite.Core.InMemoryFeatureSource.CommitTransactionCore(TransactionBuffer transactions)
bei ThinkGeo.MapSuite.Core.FeatureSource.CommitTransaction()
bei ThinkGeo.MapSuite.Core.EditTools.CommitTransaction()
bei CadRz.Kuba.Framework.Presentation.Win.Gis.LayerExtention.CommitTransaction(InMemoryFeatureLayer layer) in C:\projects\Kuba50\Implementation\Src\KubaFrameworkPresentationWin\Gis\LayerExtention.cs:Zeile 74.
I traced my program with output in order to be sure that the order of the Open() BeginTransaction() CommitTransaction() and Close() are correct, and it is correct.
I'm using the version 3.1.299, and the version numberof NetTopologySuite.dll is 1.7.3.31740.
Unfortunately I don't understand the error message, so could you please advise me ?
Thanks,
Guillaume.