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

Delete feature leads to exception in GetMap()

May 10, 2011 at 2:08 PM


i don´t know if that is a bug, but i get that exception when i load a shape file, where a feature has been deleted before.

I want to import Shapefiles into postgres with sharpmap. Editing is done with Qgis. So i made a test and changed some features and wanted to import that shapefile after saving and closing it.

But i always get the following Exception: Unable to read beyond the end of the stream.

Any ideas?

thanks in advance

May 10, 2011 at 9:40 PM

hello akoho,

my guess would be, that the shapefile index (*.shx) does no longer match the changed shapefile.

Be sure to always copy shp, shx and dbf files to remain in sync.

Hth FObermaier