This project has moved and is read-only. For the latest updates, please go here.

Memory Table Provider

Topics: SharpMap v0.9 / v1.x, SharpMap v2.0
Oct 18, 2011 at 5:07 AM
Edited Oct 18, 2011 at 5:08 AM

 I'm planning to develop a more MemoryDatatableProvider and add some features such as insert, update, delete, ... on the memory table. Then add the save edit function to save from memory table to datasource necessary. Is there anything similar that?

Oct 20, 2011 at 5:11 AM

I found it in here: Sharpmap v2.x version have implemented.

Oct 20, 2011 at 7:11 AM

There is also GeometryFeatureProvider in SharpMap v0.9

Oct 20, 2011 at 8:13 AM

Thanks FObermaier,

I will add some function for update and delete rows to GeometryFeatureProvider for my need. I hope i will have tool edit is faster than the present :)

Maybe the same to ArcGIS :)


Oct 31, 2011 at 5:24 AM

I have completed some functions such as: insert, update, delete rows of GeometryFeatureProvider class. Use GeometryFeatureProvider is faster but it is not as fast as I had expected.

GetGeometriesInView function is slow when we have a lot of rows in FeatureDataTable. Maybe, we should add index or hash table for Geometries into FeatureDataTable for faster or how to it faster?


Oct 31, 2011 at 8:31 AM

TrieuVy, how many rows do you have?

You can certainly add a spatial index. The ShapeFile provider uses the quadtree implementation from SharpMap.Utilities.Indexing.

Currently it does not change if you alter geometries or remove geometries, but you can add new ones.

Hth FObermaier

Oct 31, 2011 at 10:40 AM

Hi FObermaier,

My test data is 10776 Polygons.

PostGIS provider: use spatital index for geometries

- Faster when zoom in ( a little geometries in bbox) : Edit fast ( realtime :ok)

- Slower when zoom out. When zoom to extent  take about  >1 minute ( this is a limitation in my application)


- I seem to meet almost not much different time in different zoom levels. Slower than postgis when zoom in ( a little geometries in bbox )  and faster than postgis when zoom to extent.

When zoom to extent take about 10 seconds

I will try to add Quadtree to GeometryFeatureProvider. I do not have much experience with it

<textarea id="source" class="goog-textarea" style="padding-right: 20px; overflow-y: hidden; overflow-x: auto;" dir="ltr" name="text"></textarea>
I do not have much experience with it