Error with ORG Extension while Saving

May 19, 2011 at 10:28 AM

Hi,

i have been trying to add a few points to Point-shapefile and then save it.

i am using :

MapPointLayer ptLayer = map1.Layers.SelectedLayer as MapPointLayer;
//Code to add point.. It is working fine, seen and chedked attributrees

//to Save
ptLayer.DataSet.SaveAs(@"d:\test.shp",true);

this causes "Method Not Implemented Error" in File Ogr.extension -> OgrVectorProvider.cs > CreateNew(....)

i brosed code also and see that it thwows NotImplementedException().

Can someone please assist.....

May 19, 2011 at 11:45 AM

somehow i have been able to solve the problem by writing method as follow

=-==========================

if (featureType == FeatureTypes.Point)
{
PointShapefile ps = new PointShapefile();
ps.Filename = filename;
return ps;
}
===============================

 but a new problem occured. When i try to save, it give me error file already in use by another application.

 When i try do do "Save As" it saves by another name, however last feature is lost.

 

 PLEASE HELP